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
..
compress compress numerical expressions (#1513) 2017-03-03 18:04:32 +08:00
input improve error messages (#1506) 2017-02-27 03:40:54 +08:00
mocha optimize trivial IIFEs returning constants (#1530) 2017-03-02 15:11:40 +08:00
benchmark.js add benchmark & JetStream tests 2017-02-21 13:29:58 +08:00
jetstream.js add benchmark & JetStream tests 2017-02-21 13:29:58 +08:00
mocha.js Add mocha tests 2015-12-27 22:38:20 +01:00
mozilla-ast.js Fix mozilla-ast after module loading changes 2015-09-24 18:13:21 +03:00
run-tests.js fix duplicated test names 2017-02-21 13:29:58 +08:00
sourcemaps.js Fix #836 2015-10-20 19:48:56 +01:00