Index: Source/bindings/core/v8/V8Binding.cpp |
diff --git a/Source/bindings/core/v8/V8Binding.cpp b/Source/bindings/core/v8/V8Binding.cpp |
index 10d5ac38f7856944db9fa912f243994c56892492..36ce0059d9847be726fbb2a1319eea815f245930 100644 |
--- a/Source/bindings/core/v8/V8Binding.cpp |
+++ b/Source/bindings/core/v8/V8Binding.cpp |
@@ -762,7 +762,7 @@ v8::Local<v8::Context> toV8Context(ExecutionContext* context, DOMWrapperWorld& w |
if (LocalFrame* frame = toDocument(context)->frame()) |
return frame->script().windowProxy(world)->context(); |
} else if (context->isWorkerGlobalScope()) { |
- if (WorkerScriptController* script = toWorkerGlobalScope(context)->script()) |
+ if (WorkerScriptController* script = toWorkerGlobalScope(context)->scriptController()) |
return script->context(); |
} |
return v8::Local<v8::Context>(); |