Assume that MRB_CATCH() has mrb->exc set

The caller of `MRB_EXC_THROW()` must be preconfigured.
This commit is contained in:
dearblue
2024-07-21 21:58:18 +09:00
parent 7d8fc3b35f
commit 45007888f5
+2
View File
@@ -3109,6 +3109,8 @@ RETRY_TRY_BLOCK:
#undef regs
}
MRB_CATCH(&c_jmp) {
mrb_assert(mrb->exc != NULL);
mrb_callinfo *ci = mrb->c->ci;
while (ci > mrb->c->cibase && ci->cci == CINFO_DIRECT) {
ci = cipop(mrb);