Fix decompilation of postfix ++ and -- on block-local names (349633, r=shaver).

This commit is contained in:
brendan%mozilla.org 2006-08-25 17:57:25 +00:00
parent 3fedcd6344
commit 85280bffd9

View File

@ -2198,11 +2198,10 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
lval = QuoteString(&ss->sprinter, ATOM_TO_STRING(atom), 0);
if (!lval)
return JS_FALSE;
RETRACT(&ss->sprinter, lval);
do_lvalinc:
todo = STR2OFF(&ss->sprinter, lval);
SprintPut(&ss->sprinter,
js_incop_strs[!(cs->format & JOF_INC)],
2);
todo = Sprint(&ss->sprinter, ss_format,
lval, js_incop_strs[!(cs->format & JOF_INC)]);
break;
case JSOP_PROPINC: