mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1001662 - Enter the compilation scope before retrieving off-main-thread-compiled scripts. r=billm
This commit is contained in:
parent
f2be6bf4aa
commit
7b25a871a1
@ -2600,6 +2600,7 @@ NotifyOffThreadScriptCompletedRunnable::Run()
|
||||
JSScript *script;
|
||||
{
|
||||
AutoSafeJSContext cx;
|
||||
JSAutoCompartment ac(cx, xpc::GetCompilationScope());
|
||||
script = JS::FinishOffThreadScript(cx, JS_GetRuntime(cx), mToken);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user