From 65bca5d08b869601079c8d7435210ec7e22c6924 Mon Sep 17 00:00:00 2001 From: Plamen5kov Date: Sun, 14 Aug 2016 13:14:32 +0300 Subject: [PATCH] forgot to use new v8 api for setWeak fix --- runtime/src/main/jni/MetadataNode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/main/jni/MetadataNode.cpp b/runtime/src/main/jni/MetadataNode.cpp index 0293bc7ac..2dabe30ab 100644 --- a/runtime/src/main/jni/MetadataNode.cpp +++ b/runtime/src/main/jni/MetadataNode.cpp @@ -612,9 +612,8 @@ void MetadataNode::SetInstanceMembersFromRuntimeMetadata(Isolate *isolate, Local auto funcData = External::New(isolate, callbackData); auto funcTemplate = FunctionTemplate::New(isolate, MethodCallback, funcData); - auto func = funcTemplate->GetFunction(); auto funcName = ConvertToV8String(entry.name); - prototypeTemplate->Set(funcName, func); + prototypeTemplate->Set(funcName, funcTemplate); lastMethodName = entry.name; } callbackData->candidates.push_back(entry);