Bug 1734098 - Part 7: Add JS::CompileModuleToStencilOffThread. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D133048
This commit is contained in:
@@ -171,7 +171,7 @@ void ScriptLoadRequest::MaybeCancelOffThreadScript() {
|
||||
JSContext* cx = danger::GetJSContext();
|
||||
// Follow the same conditions as ScriptLoader::AttemptAsyncScriptCompile
|
||||
if (IsModuleRequest()) {
|
||||
JS::CancelOffThreadModule(cx, mOffThreadToken);
|
||||
JS::CancelCompileModuleToStencilOffThread(cx, mOffThreadToken);
|
||||
} else if (IsSource()) {
|
||||
JS::CancelCompileToStencilOffThread(cx, mOffThreadToken);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user