https://github.com/mishoo/UglifyJS
Revision 96f8befdd7dbc3be9f5991f805ad8d60dfb3e6d6 authored by Alex Lam S.L on 19 March 2017, 03:59:42 UTC, committed by GitHub on 19 March 2017, 03:59:42 UTC
The following is wrong:
    `a == (b ? a : c)` => `b`
Because:
- `b` may not be boolean
- `a` might have side effects
- `a == a` is not always `true` (think `NaN`)
- `a == c` is not always `false`
1 parent cd58635
History
Tip revision: 96f8befdd7dbc3be9f5991f805ad8d60dfb3e6d6 authored by Alex Lam S.L on 19 March 2017, 03:59:42 UTC
fix commit 88fb83a (#1622)
Tip revision: 96f8bef
File Mode Size
.github
bin
lib
test
tools
.gitattributes -rw-r--r-- 20 bytes
.gitignore -rw-r--r-- 35 bytes
.travis.yml -rw-r--r-- 191 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 40.4 KB
appveyor.yml -rw-r--r-- 350 bytes
package.json -rw-r--r-- 1.3 KB

README.md

back to top