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

Omitted `goto L_RAISE` to raise an exception.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-04-19 09:28:58 +09:00
parent fe3fe8fccc
commit 283d145d3e
+1
View File
@@ -1538,6 +1538,7 @@ RETRY_TRY_BLOCK:
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 {