Skip to content

Commit

Permalink
raise the error at runtime; fix #3152
Browse files Browse the repository at this point in the history
  • Loading branch information
cremno committed May 9, 2016
1 parent b4e1889 commit 309791b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgems/mruby-compiler/core/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2801,7 +2801,8 @@ loop_break(codegen_scope *s, node *tree)
loop = loop->prev;
}
if (!loop) {
codegen_error(s, "unexpected break");
raise_error(s, "unexpected break");
return;
}

if (loop->type == LOOP_NORMAL) {
Expand Down

0 comments on commit 309791b

Please sign in to comment.