Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 9212b02ec33317fc590157954561b8729db2e460..bdf8c3df3d9c88e9ba0c15f8fa2fcd10e2b1fe1c 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -2456,7 +2456,7 @@ |
} |
-void Debug::OnThrow(Handle<Object> exception) { |
+void Debug::OnThrow(Handle<Object> exception, bool uncaught) { |
if (in_debug_scope() || ignore_events()) return; |
// Temporarily clear any scheduled_exception to allow evaluating |
// JavaScript from the debug event handler. |
@@ -2466,7 +2466,7 @@ |
scheduled_exception = handle(isolate_->scheduled_exception(), isolate_); |
isolate_->clear_scheduled_exception(); |
} |
- OnException(exception, isolate_->GetPromiseOnStackOnThrow()); |
+ OnException(exception, uncaught, isolate_->GetPromiseOnStackOnThrow()); |
if (!scheduled_exception.is_null()) { |
isolate_->thread_local_top()->scheduled_exception_ = *scheduled_exception; |
} |
@@ -2479,7 +2479,7 @@ |
// Check whether the promise has been marked as having triggered a message. |
Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol(); |
if (JSObject::GetDataProperty(promise, key)->IsUndefined()) { |
- OnException(value, promise); |
+ OnException(value, false, promise); |
} |
} |
@@ -2494,8 +2494,8 @@ |
} |
-void Debug::OnException(Handle<Object> exception, Handle<Object> promise) { |
- bool uncaught = !isolate_->PredictWhetherExceptionIsCaught(*exception); |
+void Debug::OnException(Handle<Object> exception, bool uncaught, |
+ Handle<Object> promise) { |
if (!uncaught && promise->IsJSObject()) { |
Handle<JSObject> jspromise = Handle<JSObject>::cast(promise); |
// Mark the promise as already having triggered a message. |