| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 283a9117c60ced7e6c322e6892e58e44d9bb7f6c..59c56154fdda67be17658f029c18f201aec2d13a 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2084,7 +2084,8 @@ MaybeLocal<Function> ScriptCompiler::CompileFunctionInContext(
|
| Utils::OpenHandle(*context_extensions[i]);
|
| if (!extension->IsJSObject()) return Local<Function>();
|
| i::Handle<i::JSFunction> closure(context->closure(), isolate);
|
| - context = factory->NewWithContext(closure, context, extension);
|
| + context = factory->NewWithContext(
|
| + closure, context, i::ScopeInfo::CreateForWithScope(isolate), extension);
|
| }
|
|
|
| i::Handle<i::Object> name_obj;
|
|
|