| Index: third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp
|
| index a43edb0191633ee1cd7c3857b18f25f40b58118c..ecbb0feebcc2c41fb25dcecb22534aa6a7088a27 100644
|
| --- a/third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "core/events/MessageEvent.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| +#include "core/inspector/WorkerThreadDebugger.h"
|
| #include "core/origin_trials/OriginTrialContext.h"
|
| #include "core/workers/SharedWorkerThread.h"
|
| #include "core/workers/WorkerClients.h"
|
| @@ -83,11 +84,11 @@ SharedWorkerThread* SharedWorkerGlobalScope::thread()
|
| return static_cast<SharedWorkerThread*>(Base::thread());
|
| }
|
|
|
| -void SharedWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, std::unique_ptr<SourceLocation> location)
|
| +void SharedWorkerGlobalScope::exceptionThrown(const String& errorMessage, std::unique_ptr<SourceLocation> location)
|
| {
|
| - WorkerGlobalScope::logExceptionToConsole(errorMessage, location->clone());
|
| - ConsoleMessage* consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage, std::move(location));
|
| - addMessageToWorkerConsole(consoleMessage);
|
| + WorkerGlobalScope::exceptionThrown(errorMessage, location->clone());
|
| + if (WorkerThreadDebugger* debugger = WorkerThreadDebugger::from(thread()->isolate()))
|
| + debugger->exceptionThrown(errorMessage, std::move(location));
|
| }
|
|
|
| DEFINE_TRACE(SharedWorkerGlobalScope)
|
|
|