Bug 1001662 - Enter the compilation scope before retrieving off-main-thread-compiled scripts. r=billm

This commit is contained in:
Bobby Holley 2014-04-25 16:57:28 -07:00
parent f2be6bf4aa
commit 7b25a871a1

View File

@ -2600,6 +2600,7 @@ NotifyOffThreadScriptCompletedRunnable::Run()
JSScript *script;
{
AutoSafeJSContext cx;
JSAutoCompartment ac(cx, xpc::GetCompilationScope());
script = JS::FinishOffThreadScript(cx, JS_GetRuntime(cx), mToken);
}