Merge pull request #6126 from dearblue/block-return

Fixed return value of `OP_RETURN_BLK` called directly under C function
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-12-27 22:19:36 +09:00
committed by GitHub
+1 -1
View File
@@ -2300,7 +2300,7 @@ RETRY_TRY_BLOCK:
mrb_callinfo *ci = mrb->c->ci;
if (ci->cci != CINFO_NONE || !MRB_PROC_ENV_P(proc) || MRB_PROC_STRICT_P(proc)) {
if (!MRB_PROC_ENV_P(proc) || MRB_PROC_STRICT_P(proc)) {
goto NORMAL_RETURN;
}