Bug 488843 - Restore missing check for un-optimiziable frames. r=brendan

This commit is contained in:
Blake Kaplan 2009-04-20 15:41:54 -07:00
parent 0b7ce64dae
commit 2c2aafd490

View File

@ -1857,7 +1857,7 @@ MakeUpvarForEval(JSParseNode *pn, JSCodeGenerator *cg)
uintN upvarLevel = fun->u.i.script->staticLevel;
JS_ASSERT(cg->staticLevel > upvarLevel);
if (upvarLevel >= JS_DISPLAY_SIZE)
if (cg->staticLevel >= JS_DISPLAY_SIZE || upvarLevel >= JS_DISPLAY_SIZE)
return true;
JSAtomListElement *ale = cg->upvarList.lookup(atom);