mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix GC hazard, bug 679094. r=jorendorff.
This commit is contained in:
parent
8bd5d4a730
commit
24c7f785f6
@ -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…
Reference in New Issue
Block a user