Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1701)

Unified Diff: src/isolate.cc

Issue 249503002: Trigger debug event on not yet caught exception in promises. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: always use original exception Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/debug-debugger.js ('K') | « src/execution.cc ('k') | src/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 9a5bc5ad43b16e9bc7fabb2fe07cf06bee7b858c..4cdcef338456c601e88fd9ff802cfd33c5fe9b9f 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1055,7 +1055,8 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
#ifdef ENABLE_DEBUGGER_SUPPORT
// Notify debugger of exception.
if (catchable_by_javascript) {
- debugger_->OnException(exception_handle, report_exception);
+ debugger_->OnException(
+ exception_handle, report_exception, factory()->undefined_value());
}
#endif
« src/debug-debugger.js ('K') | « src/execution.cc ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698