improve handling of switch statements (#4114)

This commit is contained in:
Alex Lam S.L
2020-09-16 20:12:08 +01:00
committed by GitHub
parent 2a053710bd
commit a9d934ab4e
3 changed files with 37 additions and 37 deletions

View File

@@ -2176,6 +2176,7 @@ issue_1670_6: {
keep_fargs: false,
reduce_funcs: true,
reduce_vars: true,
sequences: true,
side_effects: true,
switches: true,
unused: true,
@@ -2193,10 +2194,9 @@ issue_1670_6: {
})(1);
}
expect: {
(function(a) {
a = 1;
console.log(a);
})(1);
(function() {
console.log(1);
})();
}
expect_stdout: "1"
}