Files
UglifyJS/test/compress
Alex Lam S.L 18059cc94f compress numerical expressions (#1513)
safe operations
- `a === b` => `a == b`
- `a + -b`  => `a - b`
- `-a + b`  => `b - a`
- `a+ +b`   => `+b+a`

associative operations
(bit-wise operations are safe, otherwise `unsafe_math`)
- `a + (b + c)`       => `(a + b) + c`
- `(n + 2) + 3`       => `5 + n`
- `(2 * n) * 3`       => `6 * n`
- `(a | 1) | (2 | d)` => `(3 | a) | b`

fixes #412
2017-03-03 18:04:32 +08:00
..
2017-02-21 13:29:57 +08:00
2016-06-30 21:49:48 +02:00
2012-08-27 11:00:26 +03:00
2017-02-21 13:29:58 +08:00
2017-02-21 13:29:58 +08:00
2012-11-30 11:26:37 +02:00
2013-10-25 16:28:15 -04:00
2013-05-08 16:22:48 +03:00
2017-02-21 13:29:58 +08:00
2013-11-20 21:13:16 +02:00
2015-04-17 11:28:59 +03:00
2016-01-05 13:56:52 +02:00
2017-02-18 19:00:54 +08:00
2017-02-21 13:29:58 +08:00
2017-02-21 13:29:58 +08:00
2017-02-21 13:29:58 +08:00
2015-01-20 00:31:44 +01:00