Bug 914162 - initialize lazy scripts before accessing their properties in jit::AnalyzeNewScriptProperties. r=bhackett

This commit is contained in:
Till Schneidereit 2013-09-09 19:11:36 +02:00
parent e8ee89c968
commit 85e28d2a70

View File

@ -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;