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 49f93e5ec096f4c5dbea9910324898ef402cf5e8..54993701b26d3318a46beafde5caadf43c95419a 100644 |
--- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
+++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
@@ -42,8 +42,8 @@ ScriptPromise Worklet::import(ScriptState* scriptState, const String& url) |
m_scriptLoaders.append(WorkerScriptLoader::create()); |
m_scriptLoaders.last()->loadAsynchronously(*getExecutionContext(), scriptURL, DenyCrossOriginRequests, |
getExecutionContext()->securityContext().addressSpace(), |
- bind(&Worklet::onResponse, wrapPersistent(this), m_scriptLoaders.last().get()), |
- bind(&Worklet::onFinished, wrapPersistent(this), m_scriptLoaders.last().get(), wrapPersistent(resolver))); |
+ bind(&Worklet::onResponse, wrapPersistent(this), WTF::unretained(m_scriptLoaders.last().get())), |
+ bind(&Worklet::onFinished, wrapPersistent(this), WTF::unretained(m_scriptLoaders.last().get()), wrapPersistent(resolver))); |
return promise; |
} |