Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 037c2d0376b6580bee226958db9117b94e2b30e9..1f822a46c3591e7b6922adf095ac8433b4dcf4ab 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -1271,6 +1271,11 @@ class PreParser : public ParserBase<PreParser> { |
V8_INLINE PreParserStatement |
BuildInitializationBlock(DeclarationParsingResult* parsing_result, |
ZoneList<const AstRawString*>* names, bool* ok) { |
+ for (auto declaration : parsing_result->declarations) { |
+ DeclareAndInitializeVariables(PreParserStatement::Default(), |
+ &(parsing_result->descriptor), &declaration, |
+ names, ok); |
+ } |
return PreParserStatement::Default(); |
} |