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 6d858ae8c3a9fbb6154c774be0f0abc40d9e4c0b..1d605348e21831c265ecd30b9191f553acefb3be 100644 |
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
@@ -7,6 +7,7 @@ |
#include "bindings/core/v8/ScriptSourceCode.h" |
#include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
#include "core/frame/FrameConsole.h" |
+#include "core/inspector/MainThreadDebugger.h" |
namespace blink { |
@@ -35,4 +36,9 @@ void MainThreadWorkletGlobalScope::addConsoleMessage(ConsoleMessage* consoleMess |
frame()->console().addMessage(consoleMessage); |
} |
+void MainThreadWorkletGlobalScope::exceptionThrown(const String& errorMessage, std::unique_ptr<SourceLocation> location) |
+{ |
+ MainThreadDebugger::instance()->exceptionThrown(frame(), errorMessage, std::move(location)); |
+} |
+ |
} // namespace blink |