diff options
Diffstat (limited to 'deps/v8/src/execution/execution.cc')
-rw-r--r-- | deps/v8/src/execution/execution.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/deps/v8/src/execution/execution.cc b/deps/v8/src/execution/execution.cc index 61219a21d7..e41c3a6286 100644 --- a/deps/v8/src/execution/execution.cc +++ b/deps/v8/src/execution/execution.cc @@ -229,12 +229,7 @@ MaybeHandle<Context> NewScriptContext(Isolate* isolate, Handle<Context> result = isolate->factory()->NewScriptContext(native_context, scope_info); - int header = scope_info->ContextHeaderLength(); - for (int var = 0; var < scope_info->ContextLocalCount(); var++) { - if (scope_info->ContextLocalInitFlag(var) == kNeedsInitialization) { - result->set(header + var, ReadOnlyRoots(isolate).the_hole_value()); - } - } + result->Initialize(isolate); Handle<ScriptContextTable> new_script_context_table = ScriptContextTable::Extend(script_context, result); |