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

Unified Diff: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp

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/core/workers/MainThreadWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
index 1d605348e21831c265ecd30b9191f553acefb3be..b7205de0231cf231289f8024eae2c1121c1340a5 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
@@ -36,9 +36,9 @@ void MainThreadWorkletGlobalScope::addConsoleMessage(ConsoleMessage* consoleMess
frame()->console().addMessage(consoleMessage);
}
-void MainThreadWorkletGlobalScope::exceptionThrown(const String& errorMessage, std::unique_ptr<SourceLocation> location)
+void MainThreadWorkletGlobalScope::exceptionThrown(ErrorEvent* event)
{
- MainThreadDebugger::instance()->exceptionThrown(frame(), errorMessage, std::move(location));
+ MainThreadDebugger::instance()->exceptionThrown(this, event);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698