Needs cipop() before crossing the C boundary

fix #6108
This commit is contained in:
dearblue
2023-12-05 22:03:38 +09:00
parent 7f1ae1c344
commit ca9e8d91e4
+2 -4
View File
@@ -2395,10 +2395,8 @@ RETRY_TRY_BLOCK:
if (mrb->c->ci == ci) {
break;
}
else if (mrb->c->ci->cci == CINFO_NONE) {
cipop(mrb);
}
else {
cipop(mrb);
if (mrb->c->ci[1].cci != CINFO_NONE) {
mrb->exc = (struct RObject*)break_new(mrb, RBREAK_TAG_BREAK, proc, v);
mrb_gc_arena_restore(mrb, ai);
mrb->c->vmexec = FALSE;