We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157dda7 commit 0c4c017Copy full SHA for 0c4c017
NativeScript/runtime/MetadataBuilder.mm
@@ -97,7 +97,9 @@
97
tns::SetValue(isolate, func, new FunctionWrapper(funcMeta));
98
MetadataBuilder::DefineFunctionLengthProperty(context, funcMeta->encodings(), func);
99
100
- cache->CFunctions.emplace(funcName, std::make_unique<Persistent<v8::Function>>(isolate, func));
+ auto uniquePersistent = std::make_unique<Persistent<v8::Function>>(isolate, func);
101
+ uniquePersistent->SetWrapperClassId(Constants::ClassTypes::DataWrapper);
102
+ cache->CFunctions.emplace(funcName, std::move(uniquePersistent));
103
104
info.GetReturnValue().Set(func);
105
} else if (meta->type() == MetaType::Var) {
0 commit comments