diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-03-01 20:34:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 20:34:31 +0000 |
commit | a051846d2275de75c72b69063a6b75ee0d302a8c (patch) | |
tree | 299681728a31b4214857a627d476928377859939 /lib | |
parent | 348547286611eaf665b00d5ee21a8fee2c2f0660 (diff) | |
download | tracifyjs-a051846d2275de75c72b69063a6b75ee0d302a8c.tar.gz tracifyjs-a051846d2275de75c72b69063a6b75ee0d302a8c.zip |
fix corner case in `evaluate` (#3739)
fixes #3738
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index e455ea8d..ab89e927 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2528,9 +2528,8 @@ merge(Compressor.prototype, { return left.is_negative_zero() || right.is_negative_zero(); case "*": case "/": - return true; case "%": - return left.is_negative_zero(); + return true; default: return false; } |