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

Unified Diff: src/parsing/preparser.cc

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: I'd like to build with -Wunused-variables locally, but how!? Created 3 years, 11 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
« no previous file with comments | « src/parsing/preparser.h ('k') | src/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.cc
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
index 95c12c698545c70e7a763d42c16a238f3d33106c..1da632f0d00a63c7313b430d5c1178033da13904 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();
« no previous file with comments | « src/parsing/preparser.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698