mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914162 - initialize lazy scripts before accessing their properties in jit::AnalyzeNewScriptProperties. r=bhackett
This commit is contained in:
parent
e8ee89c968
commit
85e28d2a70
@ -1764,6 +1764,10 @@ jit::AnalyzeNewScriptProperties(JSContext *cx, JSFunction *fun,
|
||||
// which will definitely be added to the created object before it has a
|
||||
// chance to escape and be accessed elsewhere.
|
||||
|
||||
if (fun->isInterpretedLazy() && !fun->getOrCreateScript(cx)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!fun->nonLazyScript()->compileAndGo)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user