From 66768efccd2876e26b787f24cea19cf43dd5d74e Mon Sep 17 00:00:00 2001 From: Peter Staev Date: Tue, 3 Jan 2023 10:50:25 +0200 Subject: [PATCH] feat: Add deref function Makes compatible with NS Core modules 8.4 --- src/NativeScript/Runtime/JSWeakRefPrototype.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NativeScript/Runtime/JSWeakRefPrototype.cpp b/src/NativeScript/Runtime/JSWeakRefPrototype.cpp index 36f9b2216..506feca23 100644 --- a/src/NativeScript/Runtime/JSWeakRefPrototype.cpp +++ b/src/NativeScript/Runtime/JSWeakRefPrototype.cpp @@ -21,6 +21,7 @@ void JSWeakRefPrototype::finishCreation(VM& vm, JSGlobalObject* globalObject) { Base::finishCreation(vm); this->putDirectNativeFunction(vm, globalObject, vm.propertyNames->get, 0, weakRefProtoFuncGet, NoIntrinsic, static_cast(PropertyAttribute::DontEnum)); + this->putDirectNativeFunction(vm, globalObject, vm.propertyNames->deref, 0, weakRefProtoFuncGet, NoIntrinsic, static_cast(PropertyAttribute::DontEnum)); this->putDirectNativeFunction(vm, globalObject, vm.propertyNames->clear, 0, weakRefProtoFuncClear, NoIntrinsic, static_cast(PropertyAttribute::DontEnum)); }