fix corner case in collapse_vars (#4217)

fixes #4216
This commit is contained in:
Alex Lam S.L
2020-10-14 00:18:26 +01:00
committed by GitHub
parent b7b8435721
commit 9f8106e1d8
3 changed files with 25 additions and 4 deletions

View File

@@ -1385,8 +1385,6 @@ function OutputStream(options) {
make_block(stat, output);
} else if (!stat || stat instanceof AST_EmptyStatement) {
output.force_semicolon();
} else if (stat instanceof AST_Const) {
make_block(stat, output);
} else {
stat.print(output);
}