Index: third_party/WebKit/Source/modules/worklet/Worklet.cpp |
diff --git a/third_party/WebKit/Source/modules/worklet/Worklet.cpp b/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
index bbab7dc586674ec943c9278b3ff243f8359f9979..4218b5887fe3ff91e4d510469358c26fb520ae4b 100644 |
--- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
+++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
@@ -69,7 +69,7 @@ void Worklet::onFinished(WorkerScriptLoader* scriptLoader, ScriptPromiseResolver |
// TODO(ikilpatrick): Worklets don't have the same error behaviour |
// as workers, etc. For a SyntaxError we should reject, however if |
// the script throws a normal error, resolve. For now just resolve. |
- m_workletGlobalScope->script()->evaluate(ScriptSourceCode(scriptLoader->script(), scriptLoader->url())); |
+ m_workletGlobalScope->scriptController()->evaluate(ScriptSourceCode(scriptLoader->script(), scriptLoader->url())); |
resolver->resolve(); |
} |
@@ -84,7 +84,7 @@ void Worklet::onFinished(WorkerScriptLoader* scriptLoader, ScriptPromiseResolver |
void Worklet::stop() |
{ |
- m_workletGlobalScope->script()->willScheduleExecutionTermination(); |
+ m_workletGlobalScope->scriptController()->willScheduleExecutionTermination(); |
for (auto scriptLoader : m_scriptLoaders) { |
scriptLoader->cancel(); |