Commit 309791b3 authored by cremno's avatar cremno

raise the error at runtime; fix #3152

parent b4e18898
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment