Chromium Code Reviews| 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..bd944d5b7a0e8a94665766d50befaa4362d06633 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::logExceptionToConsole(const String& errorMessage, std::unique_ptr<SourceLocation> location) |
| +{ |
| + MainThreadDebugger::instance()->exceptionUnhandled(frame(), errorMessage, std::move(location)); |
|
kozy
2016/07/08 18:48:59
Is threadDebugger always presented for WorkletGlob
dgozman
2016/07/08 18:56:41
Yes, it's a main thread isolate.
|
| +} |
| + |
| } // namespace blink |