Fix JSOP_GROUP decompilation to propagate lastop to saveop (to lastop again on next iteration, in case of cascading groups; 351597, r=mrbkap).

This commit is contained in:
brendan%mozilla.org 2006-09-07 01:16:15 +00:00
Родитель a70af58834
Коммит 1a6af0763a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1227,7 +1227,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
* that the auto-parens magic in PopOff can do its thing. * that the auto-parens magic in PopOff can do its thing.
*/ */
LOCAL_ASSERT(ss->top != 0); LOCAL_ASSERT(ss->top != 0);
ss->opcodes[ss->top-1] = lastop; ss->opcodes[ss->top-1] = saveop = lastop;
todo = -2; todo = -2;
break; break;