Account for the block depth. bug 349482, r=brendan

This commit is contained in:
mrbkap%gmail.com 2006-08-21 18:19:15 +00:00
parent 59dda26d22
commit bd86d8b207

View File

@ -1450,7 +1450,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
LOCAL_ASSERT(*pc == JSOP_SETLOCALPOP);
i = GET_UINT16(pc);
pc += JSOP_SETLOCALPOP_LENGTH;
str = ATOM_TO_STRING(atomv[i]);
str = ATOM_TO_STRING(atomv[i - OBJ_BLOCK_DEPTH(cx, obj)]);
rval = QuoteString(&ss->sprinter, str, 0);
if (!rval) {
ok = JS_FALSE;