Merge pull request #3155 from cremno/fix-3152

fix #3152
This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-05-10 09:18:25 +09:00
+2 -1
View File
@@ -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) {