Callinfo may be changed in `ecall()`; fix #3589

parent ab25eaea
......@@ -1161,6 +1161,7 @@ RETRY_TRY_BLOCK:
for (n=0; n<a && (ci == mrb->c->cibase || eidx > ci[-1].eidx); n++) {
ecall(mrb, --eidx);
ci = mrb->c->ci;
ARENA_RESTORE(mrb, ai);
}
NEXT;
......@@ -1706,6 +1707,7 @@ RETRY_TRY_BLOCK:
if (ci[0].ridx == ci[-1].ridx) {
while (eidx > ci[-1].eidx) {
ecall(mrb, --eidx);
ci = mrb->c->ci;
}
}
}
......
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