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 20377f1 commit 92ae4f4Copy full SHA for 92ae4f4
bridge/bindings/v8/v8_member_installer.cc
@@ -11,7 +11,8 @@ namespace webf {
11
void MemberInstaller::InstallFunctions(ExecutingContext* context,
12
std::initializer_list<FunctionConfig> config) {
13
v8::Isolate* isolate = context->ctx();
14
- v8::Local<v8::Context> v8_context = isolate->GetCurrentContext();
+ v8::Local<v8::Context> v8_context = v8::Context::New(isolate);
15
+ v8::Context::Scope context_scope(v8_context);
16
v8::Local<v8::Object> global = v8_context->Global();
17
18
for (const auto& function : config) {
0 commit comments