Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 864b10d376e7e9fd06e082f929fd5e9f56560b2c..0377a1b9d35e70ff9cb131ad061e01f7f257888f 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -307,6 +307,7 @@ void PreParser::DeclareAndInitializeVariables( |
ZoneList<const AstRawString*>* names, bool* ok) { |
if (declaration->pattern.variables_ != nullptr) { |
DCHECK(FLAG_lazy_inner_functions); |
+ DCHECK(track_unresolved_variables_); |
for (auto variable : *(declaration->pattern.variables_)) { |
declaration_descriptor->scope->RemoveUnresolved(variable); |
scope()->DeclareVariableName(variable->raw_name(), |