Fix bug where do/while continue statement jumped to the wrong location.

This commit is contained in:
Tor Andersson
2014-02-05 13:14:34 +01:00
parent f725c8cf92
commit dd9217c6a0
+2 -1
View File
@@ -862,9 +862,10 @@ static void cstm(JF, js_Ast *stm)
case STM_DO:
loop = here(J, F);
cstm(J, F, stm->a);
cont = here(J, F);
cexp(J, F, stm->b);
jumpto(J, F, OP_JTRUE, loop);
labeljumps(J, F, stm->jumps, here(J,F), loop);
labeljumps(J, F, stm->jumps, here(J,F), cont);
break;
case STM_WHILE: