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