Call all ensure clauses pushed at `OP_STOP`.

parent afa53809
...@@ -2884,12 +2884,11 @@ RETRY_TRY_BLOCK: ...@@ -2884,12 +2884,11 @@ RETRY_TRY_BLOCK:
CASE(OP_STOP) { CASE(OP_STOP) {
/* stop VM */ /* stop VM */
L_STOP: L_STOP:
{ while (mrb->c->ci > mrb->c->cibase) {
int epos = mrb->c->ci->epos; cipop(mrb);
}
while (mrb->c->eidx > epos) { while (mrb->c->eidx > 0) {
ecall(mrb); ecall(mrb);
}
} }
ERR_PC_CLR(mrb); ERR_PC_CLR(mrb);
mrb->jmp = prev_jmp; mrb->jmp = prev_jmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment