Fix decompiler (hack, really) to cope with misplaced JSOP_HEADER in update part of for(;;) loop.

This commit is contained in:
Brendan Eich 2008-06-03 23:50:22 -07:00
Родитель 82cd18b6ab
Коммит e49b7995d0
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -2061,7 +2061,8 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
if (pc[next] != JSOP_GOTO && pc[next] != JSOP_GOTOX) {
/* Decompile the loop updater. */
DECOMPILE_CODE(pc + next, tail - next - 1);
DECOMPILE_CODE(pc + next, tail - next -
(JSOP_POP_LENGTH + JSOP_HEADER_LENGTH));
js_printf(jp, " %s", POP_STR());
}