remove loop check when aliasing breaks, continues etc - fixes #1051

This commit is contained in:
Sebastian McKenzie
2015-03-18 23:31:11 +11:00
parent d919d7837c
commit 660d764390
3 changed files with 36 additions and 4 deletions

View File

@@ -527,10 +527,6 @@ class BlockScoping {
}
if (has.hasBreakContinue) {
if (!loop) {
throw new Error("Aren't in a loop and we're trying to reassign breaks and continues, something is going wrong here.");
}
for (var key in has.map) {
cases.push(t.switchCase(t.literal(key), [has.map[key]]));
}