mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Fix GC hazard, bug 679094. r=jorendorff.
This commit is contained in:
parent
4f2f3f21e2
commit
28ad505604
@ -1124,7 +1124,7 @@ Compiler::compileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
|
||||
JS_ASSERT(script->savedCallerFun == savedCallerFun);
|
||||
|
||||
{
|
||||
AutoShapeRooter shapeRoot(cx, script->bindings.lastShape());
|
||||
AutoScriptRooter root(cx, script);
|
||||
if (!defineGlobals(cx, globalScope, script))
|
||||
goto late_error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user