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

Unified Diff: src/parsing/parser.cc

Issue 2286753002: Synchronous path changes
Patch Set: Created 4 years, 4 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/objects.h ('k') | test/mjsunit/harmony/async-debug-caught-exception2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index aa133b4714f741d76ac5997374b2b771ccb80887..7ebb418e96f0562f6aeae031151cbb10d66db75e 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4459,8 +4459,10 @@ Block* Parser::BuildRejectPromiseOnException(Block* inner_block, bool* ok) {
factory()->NewReturnStatement(promise_reject, kNoSourcePosition);
catch_block->statements()->Add(return_promise_reject, zone());
- TryStatement* try_catch_statement = factory()->NewTryCatchStatement(
- inner_block, catch_scope, catch_variable, catch_block, kNoSourcePosition);
+ TryStatement* try_catch_statement =
+ factory()->NewTryCatchStatementForAsyncAwait(inner_block, catch_scope,
+ catch_variable, catch_block,
+ kNoSourcePosition);
// There is no TryCatchFinally node, so wrap it in an outer try/finally
Block* outer_try_block =
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/harmony/async-debug-caught-exception2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698