Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index dadee9af50fd97269451ee8ce3a4b55ca3348df5..7093a21f3099f096544f89c390232a5f310e116e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1341,6 +1341,9 @@ HandlerTable::CatchPrediction PredictException(JavaScriptFrame* frame) { |
frame->Summarize(&summaries); |
for (const FrameSummary& summary : summaries) { |
Handle<AbstractCode> code = summary.abstract_code(); |
+ if (code->IsCode() && code->GetCode()->exception_hint() == 1) { |
+ return HandlerTable::PROMISE; |
+ } |
if (code->kind() == AbstractCode::OPTIMIZED_FUNCTION) { |
DCHECK(summary.function()->shared()->asm_function()); |
DCHECK(!FLAG_turbo_asm_deoptimization); |