Files
UglifyJS/test
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-27 03:40:54 +08:00
2017-02-21 13:29:58 +08:00
2017-02-21 13:29:58 +08:00
2015-12-27 22:38:20 +01:00
2017-02-21 13:29:58 +08:00
2015-10-20 19:48:56 +01:00