Should not raise `LocalJumpError` on funcall'ed frame; fix #3750

parent 04c21d9d
......@@ -1964,7 +1964,7 @@ RETRY_TRY_BLOCK:
if (ci->env) {
mrb_env_unshare(mrb, ci->env);
}
if (ci->acc < 0) {
if (ci != ce && ci->acc < 0) {
localjump_error(mrb, LOCALJUMP_ERROR_RETURN);
goto L_RAISE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment