mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #6125 from dearblue/cross-c
Allow `OP_RETURN_BLK` to cross C boundaries
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user