Index: third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp |
index 3381fcf5e27dfdbbbcae626a9a10a58243438123..09b46bda630c46331f17dd80d0fe20a75f5e4215 100644 |
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp |
@@ -32,6 +32,7 @@ |
#include "core/inspector/WorkerThreadDebugger.h" |
#include "bindings/core/v8/V8ScriptRunner.h" |
+#include "core/inspector/DebuggerScript.h" |
#include "core/inspector/WorkerDebuggerAgent.h" |
#include "core/workers/WorkerThread.h" |
#include <v8.h> |
@@ -41,7 +42,8 @@ namespace blink { |
static const int workerContextGroupId = 1; |
WorkerThreadDebugger::WorkerThreadDebugger(WorkerThread* workerThread) |
- : ScriptDebuggerBase(v8::Isolate::GetCurrent()) |
+ : m_isolate(v8::Isolate::GetCurrent()) |
+ , m_debugger(V8Debugger::create(v8::Isolate::GetCurrent(), this)) |
, m_workerThread(workerThread) |
, m_paused(false) |
{ |
@@ -61,6 +63,11 @@ int WorkerThreadDebugger::contextGroupId() |
return workerContextGroupId; |
} |
+v8::Local<v8::Object> WorkerThreadDebugger::compileDebuggerScript() |
+{ |
+ return blink::compileDebuggerScript(m_isolate); |
+} |
+ |
void WorkerThreadDebugger::runMessageLoopOnPause(int contextGroupId) |
{ |
ASSERT(contextGroupId == workerContextGroupId); |