Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 9bb29feff8cd4b4eb79208bdd7454614b51f8b62..d54654f9c6f607c30b9d0b73718c0bf4e5e7ead8 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1460,6 +1460,9 @@ void Isolate::CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler) { |
DCHECK(scheduled_exception() != heap()->termination_exception()); |
clear_scheduled_exception(); |
} |
+ if (thread_local_top_.pending_message_obj_ == handler->message_obj_) { |
+ clear_pending_message(); |
+ } |
} |