Backout cd9d6b4fb8c3 for mochitest failures.

With this, just incase there is a CLOSED TREE.
This commit is contained in:
Terrence Cole 2013-11-01 15:28:16 -07:00
parent 24c2f52d3f
commit c3e403d73c

View File

@ -779,9 +779,8 @@ nsScriptLoader::AttemptAsyncScriptParse(nsScriptLoadRequest* aRequest)
if (!context) {
return NS_ERROR_FAILURE;
}
JSContext *scriptCx = context->GetNativeContext();
JS::Rooted<JSObject*> global(scriptCx, unrootedGlobal);
AutoPushJSContext cx(scriptCx);
AutoPushJSContext cx(context->GetNativeContext());
JS::Rooted<JSObject*> global(cx, unrootedGlobal);
JS::CompileOptions options(cx);
FillCompileOptionsForRequest(aRequest, global, &options);