Skip to content
Permalink
Browse files
OP_BLKPUSH is invalid outside of methods; fix #3501
  • Loading branch information
matz committed Mar 13, 2017
1 parent 916b8ed commit 877f43bca5eb2d23610665dd8e03f04fa63c6b33
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1892,7 +1892,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
if (lv == 0) stack = regs + 1;
else {
struct REnv *e = uvenv(mrb, lv-1);
if (!e) {
if (!e || e->mid == 0) {
localjump_error(mrb, LOCALJUMP_ERROR_YIELD);
goto L_RAISE;
}

0 comments on commit 877f43b

Please sign in to comment.