Skip to content

Commit 3fc4243

Browse files
committed
get current isolate from arguments instead of global obj
1 parent d7c6275 commit 3fc4243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jni/MetadataNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void MetadataNode::NullObjectAccessorGetterCallback(Local<String> property,const
312312
void MetadataNode::NullValueOfCallback(const FunctionCallbackInfo<Value>& args) {
313313
try
314314
{
315-
auto isolate = Isolate::GetCurrent();
315+
auto isolate = args.GetIsolate();
316316
args.GetReturnValue().Set(Null(isolate));
317317
}
318318
catch (NativeScriptException& e)

0 commit comments

Comments
 (0)