Permalink
Browse files

Fixed a bug caused by last minute change; fix #3610

Omitted `goto L_RAISE` to raise an exception.
  • Loading branch information...
matz committed Apr 19, 2017
1 parent fe3fe8f commit 283d145d3efd04b04a008193e34f8b0f9d0aff16
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -1538,6 +1538,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
L_NOSUPER:
exc = mrb_exc_new_str_lit(mrb, E_NOMETHOD_ERROR, "super called outside of method");
mrb_exc_set(mrb, exc);
goto L_RAISE;
}
if (lv == 0) stack = regs + 1;
else {

0 comments on commit 283d145

Please sign in to comment.