| 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 =
|
|
|