Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index f5f39556a7e6b979306e820f0f2f76be5652df92..cd34d35423e66085ffa64ccd1cd826d4fdeeee63 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4551,7 +4551,7 @@ |
// yield do { |
// promise_tmp = .promise; |
// tmp = <operand>; |
- // %AsyncFunctionAwait(.generator_object, tmp, promise_tmp); |
+ // %AsyncFunctionAwait(.generator_object, tmp); |
// promise_tmp |
// } |
// The value of the expression is returned to the caller of the async |
@@ -4596,13 +4596,11 @@ |
zone()); |
ZoneList<Expression*>* async_function_await_args = |
- new (zone()) ZoneList<Expression*>(3, zone()); |
+ new (zone()) ZoneList<Expression*>(2, zone()); |
Expression* generator_object = |
factory()->NewVariableProxy(generator_object_variable); |
async_function_await_args->Add(generator_object, zone()); |
async_function_await_args->Add(factory()->NewVariableProxy(temp_var), zone()); |
- async_function_await_args->Add(factory()->NewVariableProxy(promise_temp_var), |
- zone()); |
// The parser emits calls to AsyncFunctionAwaitCaught, but the |
// AstNumberingVisitor will rewrite this to AsyncFunctionAwaitUncaught |