diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-02-28 22:02:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 22:02:24 +0800 |
commit | 0daa199fa85e60b78b04b82a91acdb230cb42229 (patch) | |
tree | ba8edb563703f738d3c06a1e99e4a5070362baca /lib | |
parent | 73e98dcda48be52f2c045038554b2cfe184a9a5a (diff) | |
download | tracifyjs-0daa199fa85e60b78b04b82a91acdb230cb42229.tar.gz tracifyjs-0daa199fa85e60b78b04b82a91acdb230cb42229.zip |
migrate safe transformations out of `unsafe_comps` (#2962)
fixes #2959
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/compress.js b/lib/compress.js index 9adef60e..e83524c5 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -5041,11 +5041,9 @@ merge(Compressor.prototype, { }); self = best_of(compressor, self, negated); } - if (compressor.option("unsafe_comps")) { - switch (self.operator) { - case "<": reverse(">"); break; - case "<=": reverse(">="); break; - } + switch (self.operator) { + case ">": reverse("<"); break; + case ">=": reverse("<="); break; } } if (self.operator == "+") { |