Index: Source/bindings/v8/WorkerScriptController.h |
diff --git a/Source/bindings/v8/WorkerScriptController.h b/Source/bindings/v8/WorkerScriptController.h |
index b7da9f27c38c85cde2f08464e80fe3c0b658b5e2..407a1116bfbb785007d819a198fef0e918cb58b7 100644 |
--- a/Source/bindings/v8/WorkerScriptController.h |
+++ b/Source/bindings/v8/WorkerScriptController.h |
@@ -94,13 +94,15 @@ namespace WebCore { |
ScriptValue evaluate(const String& script, const String& fileName, const TextPosition& scriptStartPosition, WorkerGlobalScopeExecutionState*); |
// Returns a local handle of the context. |
- v8::Local<v8::Context> context() { return m_context.newLocal(v8::Isolate::GetCurrent()); } |
+ v8::Local<v8::Context> context() { return m_context.newLocal(m_isolate); } |
// Send a notification about current thread is going to be idle. |
// Returns true if the embedder should stop calling idleNotification |
// until real work has been done. |
bool idleNotification() { return v8::V8::IdleNotification(); } |
+ v8::Isolate* isolate() const { return m_isolate; } |
+ |
private: |
bool initializeContextIfNeeded(); |
void disposeContext(); |