src/vm.c: calling C function may raise global jumps; fix #5391

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-03-29 17:28:32 +09:00
parent 3c2186f050
commit a963e29b67
+1
View File
@@ -780,6 +780,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value
mrb->c->ci->stack[argc+1] = mrb_nil_value();
if (MRB_PROC_CFUNC_P(p)) {
ci->acc = CI_ACC_DIRECT;
val = MRB_PROC_CFUNC(p)(mrb, self);
cipop(mrb);
}