Merge pull request #6125 from dearblue/cross-c

Allow `OP_RETURN_BLK` to cross C boundaries
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-12-27 22:18:06 +09:00
committed by GitHub
-4
View File
@@ -2319,10 +2319,6 @@ RETRY_TRY_BLOCK:
}
/* check jump destination */
while (cibase <= ci && ci->proc != dst) {
if (ci->cci > CINFO_NONE) { /* jump cross C boundary */
localjump_error(mrb, LOCALJUMP_ERROR_RETURN);
goto L_RAISE;
}
ci--;
}
if (ci <= cibase) { /* no jump destination */