Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 8360627f6199dc4d9a9fc6a24e1bc05d443f1fe2..4137f1f9e5f4bf913c745ff1eebf3e5c97663f7f 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -288,6 +288,13 @@ void AstNumberingVisitor::VisitCallRuntime(CallRuntime* node) { |
catch_prediction_ == HandlerTable::ASYNC_AWAIT) { |
node->set_context_index(Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX); |
} |
+ |
+ // Similar measures are taken for AsyncGeneratorAwait calls. |
+ if (node->is_jsruntime() && |
+ node->context_index() == Context::ASYNC_GENERATOR_AWAIT_CAUGHT && |
+ catch_prediction_ == HandlerTable::ASYNC_AWAIT) { |
+ node->set_context_index(Context::ASYNC_GENERATOR_AWAIT_UNCAUGHT); |
+ } |
} |