| Index: Source/bindings/core/v8/WorkerScriptDebugServer.cpp
|
| diff --git a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
|
| index 41b5a0d1fba6c823d788b0660a4a1fd056eea9d0..65544e87b03e6081ffcb001e3fccb18688e4d651 100644
|
| --- a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
|
| +++ b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "bindings/core/v8/WorkerScriptDebugServer.h"
|
|
|
| #include "bindings/core/v8/V8ScriptRunner.h"
|
| +#include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/ScriptDebugListener.h"
|
| #include "core/inspector/WorkerDebuggerAgent.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| @@ -90,12 +91,12 @@ ScriptDebugListener* WorkerScriptDebugServer::getDebugListenerForContext(v8::Loc
|
| void WorkerScriptDebugServer::runMessageLoopOnPause(v8::Local<v8::Context>)
|
| {
|
| MessageQueueWaitResult result;
|
| - m_workerGlobalScope->thread()->willEnterNestedLoop();
|
| + InspectorInstrumentation::willEnterNestedRunLoop(m_workerGlobalScope.get());
|
| do {
|
| result = m_workerGlobalScope->thread()->runDebuggerTask();
|
| // Keep waiting until execution is resumed.
|
| } while (result == MessageQueueMessageReceived && scriptDebugServer()->isPaused());
|
| - m_workerGlobalScope->thread()->didLeaveNestedLoop();
|
| + InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get());
|
|
|
| // The listener may have been removed in the nested loop.
|
| if (m_listener)
|
|
|