Skip to content
Permalink
Browse files
raise the error at runtime; fix #3152
  • Loading branch information
cremno committed May 9, 2016
1 parent b4e1889 commit 309791b3ae6b7869262e791abbaa9b848cc64702
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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) {

0 comments on commit 309791b

Please sign in to comment.