improve compression of if conditions (#2544)

This commit is contained in:
Alex Lam S.L
2017-12-01 06:18:31 +08:00
committed by GitHub
parent b762f2d6f4
commit 5a1e99d713
6 changed files with 60 additions and 22 deletions

View File

@@ -87,6 +87,7 @@ issue_485_crashing_1530: {
dead_code: true,
evaluate: true,
inline: true,
side_effects: true,
}
input: {
(function(a) {
@@ -94,9 +95,7 @@ issue_485_crashing_1530: {
var b = 42;
})(this);
}
expect: {
this, void 0;
}
expect: {}
}
issue_1841_1: {