Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3503)

Unified Diff: src/parsing/preparser.cc

Issue 2664083002: [ignition] desugar async functions/generators/modules in BytecodeGenerator
Patch Set: get rid of lambdas, for better or worse.. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/preparser.cc
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
index 0377a1b9d35e70ff9cb131ad061e01f7f257888f..02b0cddb9a47ec6c97e2a35b84972a69e3824d1a 100644
--- a/src/parsing/preparser.cc
+++ b/src/parsing/preparser.cc
@@ -231,10 +231,11 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
// Parse function body.
PreParserStatementList body;
+ BlockT parameter_init_block = NullBlock();
int pos = function_token_pos == kNoSourcePosition ? peek_position()
: function_token_pos;
- ParseFunctionBody(body, function_name, pos, formals, kind, function_type,
- CHECK_OK);
+ ParseFunctionBody(body, &parameter_init_block, function_name, pos, formals,
+ kind, function_type, CHECK_OK);
// Parsing the body may change the language mode in our scope.
language_mode = function_scope->language_mode();

Powered by Google App Engine
This is Rietveld 408576698