| Index: src/parsing/preparser.h
|
| diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
|
| index 3b2f503b62fa71cf76d8925b583af0c748ccbf42..2bf242aa6d42d24df897bd0debda8925f3bf0a56 100644
|
| --- a/src/parsing/preparser.h
|
| +++ b/src/parsing/preparser.h
|
| @@ -1044,7 +1044,7 @@ class PreParser : public ParserBase<PreParserTraits> {
|
| // new Module Environment Record whose outer lexical environment record is
|
| // the global scope.
|
| if (is_module) {
|
| - scope = NewScope(scope, MODULE_SCOPE);
|
| + scope = NewScopeWithParent(scope, MODULE_SCOPE);
|
| }
|
|
|
| PreParserFactory factory(nullptr);
|
| @@ -1247,7 +1247,7 @@ PreParserStatementList PreParser::ParseEagerFunctionBody(
|
| ParsingModeScope parsing_mode(this, PARSE_EAGERLY);
|
|
|
| Scope* inner_scope = scope();
|
| - if (!parameters.is_simple) inner_scope = NewScope(scope(), BLOCK_SCOPE);
|
| + if (!parameters.is_simple) inner_scope = NewScope(BLOCK_SCOPE);
|
|
|
| {
|
| BlockState block_state(&scope_state_, inner_scope);
|
|
|