File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ inline void Environment::SetMethod(v8::Local<v8::Object> that,
740
740
const v8::NewStringType type = v8::NewStringType::kInternalized ;
741
741
v8::Local<v8::String> name_string =
742
742
v8::String::NewFromUtf8 (isolate (), name, type).ToLocalChecked ();
743
- that->Set (name_string, function);
743
+ that->Set (context, name_string, function). FromJust ( );
744
744
function->SetName (name_string); // NODE_SET_METHOD() compatibility.
745
745
}
746
746
@@ -760,7 +760,7 @@ inline void Environment::SetMethodNoSideEffect(v8::Local<v8::Object> that,
760
760
const v8::NewStringType type = v8::NewStringType::kInternalized ;
761
761
v8::Local<v8::String> name_string =
762
762
v8::String::NewFromUtf8 (isolate (), name, type).ToLocalChecked ();
763
- that->Set (name_string, function);
763
+ that->Set (context, name_string, function). FromJust ( );
764
764
function->SetName (name_string); // NODE_SET_METHOD() compatibility.
765
765
}
766
766
You can’t perform that action at this time.
0 commit comments