| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 589f36d46d4e5e835fe89188255c19bc8982decb..c6c95c6d12d46cce238eea878c3543324b41843c 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2110,6 +2110,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
|
| Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(
|
| name, code, IsConstructable(kind, scope_info->language_mode()));
|
| shared->set_scope_info(*scope_info);
|
| + shared->set_outer_scope_info(*the_hole_value());
|
| shared->set_kind(kind);
|
| shared->set_num_literals(number_of_literals);
|
| if (IsGeneratorFunction(kind)) {
|
| @@ -2156,6 +2157,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
|
| share->set_code(*code);
|
| share->set_optimized_code_map(*cleared_optimized_code_map());
|
| share->set_scope_info(ScopeInfo::Empty(isolate()));
|
| + share->set_outer_scope_info(*the_hole_value());
|
| Handle<Code> construct_stub =
|
| is_constructor ? isolate()->builtins()->JSConstructStubGeneric()
|
| : isolate()->builtins()->ConstructedNonConstructable();
|
|
|