https://github.com/mishoo/UglifyJS
Revision 0610c020b1544820be9898a285ab6c9066490552 authored by Alex Lam S.L on 26 January 2017, 11:16:50 UTC, committed by Richard van Velzen on 26 January 2017, 11:16:50 UTC
- remove call to evaluate() in is_constant() and let nested optimize() does its job instead
- reject RegExp in is_constant() and remove special case logic under collapse_vars
- operands to conditionals optimisation are now always evaluate()-ed
- throw error in constant_value() instead of returning undefined to catch possible bugs, similar to make_node_from_constant()
- optimise binary boolean operators under `evaluate` instead of `conditionals`
1 parent 0d7d491
History
Tip revision: 0610c020b1544820be9898a285ab6c9066490552 authored by Alex Lam S.L on 26 January 2017, 11:16:50 UTC
optimise binary operands with evaluate() (#1427)
Tip revision: 0610c02
File Mode Size
bin
lib
test
tools
.gitignore -rw-r--r-- 35 bytes
.travis.yml -rw-r--r-- 150 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 38.6 KB
appveyor.yml -rw-r--r-- 350 bytes
package.json -rw-r--r-- 1.3 KB

README.md

back to top