mirror of
https://github.com/ccxvii/mujs.git
synced 2026-09-21 14:43:34 +08:00
Fix bug where do/while continue statement jumped to the wrong location.
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user