fix invalid AST_For.init (#1657)

Turns out the only place in `Compressor` which can generate invalid `AST_For.init` is within `drop_unused()`, so focus the fix-up efforts.

supercedes #1652
fixes #1656
This commit is contained in:
Alex Lam S.L
2017-03-25 03:18:36 +08:00
committed by GitHub
parent b1abe92e1a
commit a30092e20f
3 changed files with 62 additions and 1 deletions

View File

@@ -791,3 +791,17 @@ issue_1583: {
}
}
}
issue_1656: {
options = {
toplevel: true,
unused: true,
}
beautify = {
beautify: true,
}
input: {
for(var a=0;;);
}
expect_exact: "for (;;) ;"
}