| Index: src/parsing/preparser.h
|
| diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
|
| index 1c4c22741d14373e6aab935e8cab094be52048d0..3b2f503b62fa71cf76d8925b583af0c748ccbf42 100644
|
| --- a/src/parsing/preparser.h
|
| +++ b/src/parsing/preparser.h
|
| @@ -1038,7 +1038,7 @@ class PreParser : public ParserBase<PreParserTraits> {
|
| PreParseResult PreParseProgram(int* materialized_literals = 0,
|
| bool is_module = false) {
|
| DCHECK_NULL(scope_state_);
|
| - Scope* scope = NewScope(nullptr, SCRIPT_SCOPE);
|
| + Scope* scope = NewScriptScope();
|
|
|
| // ModuleDeclarationInstantiation for Source Text Module Records creates a
|
| // new Module Environment Record whose outer lexical environment record is
|
|
|