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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js

Issue 2170263002: [DevTools] Pass error object when reporting exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worklets! Created 4 years, 5 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
index dda13ee42162336a7edf2d9863ec6e93fc8b7a27..81f055c051b6fd5e90a6d9ae3f8e8f551cc4ff95 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -377,7 +377,7 @@ WebInspector.RuntimeDispatcher.prototype = {
details.lineNumber,
details.columnNumber,
undefined,
- exception ? ["Uncaught (in promise)", exception] : undefined,
+ exception ? [WebInspector.RemoteObject.fromLocalObject(details.text), exception] : undefined,
details.stackTrace,
timestamp,
executionContextId,

Powered by Google App Engine
This is Rietveld 408576698