UglifyJS/lib
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
..
ast.js faster tree transversal (#1462) 2017-02-26 05:58:26 +08:00
compress.js compress numerical expressions (#1513) 2017-03-03 18:04:32 +08:00
mozilla-ast.js Don't convert all strings to directives from moz-ast 2016-07-03 12:36:57 +02:00
output.js clean up max_line_len 2017-02-21 13:29:58 +08:00
parse.js improve error messages (#1506) 2017-02-27 03:40:54 +08:00
propmangle.js in mangle_names there is a check that the variable name is legal and that it is not a reserved word. This should apply to propsmangle as well. 2017-02-10 14:13:47 +02:00
scope.js consolidate evaluate & reduce_vars (#1505) 2017-02-26 00:40:33 +08:00
sourcemap.js Generate source map data from normalized files 2016-11-29 20:42:56 +01:00
transform.js Collapse single use var definitions 2016-01-27 11:48:15 +02:00
utils.js fix crash on missing props to string_template() (#1523) 2017-03-01 15:25:26 +08:00