зеркало из https://github.com/mozilla/gecko-dev.git
Bug 456692 - "Assertion failure: slot < fp2->script->nslots" with nested eval (r=mrbkap).
This commit is contained in:
Родитель
09a7e776e0
Коммит
870b883c25
|
@ -1892,7 +1892,7 @@ BindNameToSlot(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
|
|||
|
||||
ATOM_LIST_SEARCH(ale, &cg->upvarList, atom);
|
||||
if (!ale) {
|
||||
uint32 cookie, length, *vector;
|
||||
uint32 length, *vector;
|
||||
|
||||
ale = js_IndexAtom(cx, atom, &cg->upvarList);
|
||||
if (!ale)
|
||||
|
@ -1919,8 +1919,9 @@ BindNameToSlot(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
|
|||
return JS_TRUE;
|
||||
}
|
||||
|
||||
cookie = MAKE_UPVAR_COOKIE(1, index);
|
||||
cg->upvarMap.vector[ALE_INDEX(ale)] = cookie;
|
||||
JS_ASSERT(cg->staticDepth > caller->fun->u.i.script->staticDepth);
|
||||
uintN skip = cg->staticDepth - caller->fun->u.i.script->staticDepth;
|
||||
cg->upvarMap.vector[ALE_INDEX(ale)] = MAKE_UPVAR_COOKIE(skip, index);
|
||||
}
|
||||
|
||||
pn->pn_op = JSOP_GETUPVAR;
|
||||
|
|
Загрузка…
Ссылка в новой задаче