Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
index e248c3738b050b9194762accf5476ea3a2d86b63..2d02265ef2750cc10e103a48adc079108f7c3e7c 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
@@ -787,7 +787,7 @@ v8::Local<v8::Context> toV8Context(ExecutionContext* context, DOMWrapperWorld& w |
if (LocalFrame* frame = toDocument(context)->frame()) |
return toV8Context(frame, world); |
} else if (context->isWorkerGlobalScope()) { |
- if (WorkerOrWorkletScriptController* script = toWorkerOrWorkletGlobalScope(context)->script()) { |
+ if (WorkerOrWorkletScriptController* script = toWorkerOrWorkletGlobalScope(context)->scriptController()) { |
if (script->scriptState()->contextIsValid()) |
return script->scriptState()->context(); |
} |