Permalink
Browse files

Should handle `break` from funcall(); fix #3434

This issue was reported by https://hackerone.com/d4nny
  • Loading branch information...
matz committed Feb 13, 2017
1 parent f198530 commit c2ddcd451724c9399014ab24a6d47815ed1a1c7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vm.c
View
@@ -1733,7 +1733,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
acc = ci->acc;
mrb->c->stack = ci->stackent;
cipop(mrb);
if (acc == CI_ACC_SKIP) {
if (acc == CI_ACC_SKIP || acc == CI_ACC_DIRECT) {
mrb->jmp = prev_jmp;
return v;
}

0 comments on commit c2ddcd4

Please sign in to comment.