fix commit 88fb83a (#1622)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sun, 19 Mar 2017 03:59:42 +0000 (11:59 +0800)
committerGitHub <noreply@github.com>
Sun, 19 Mar 2017 03:59:42 +0000 (11:59 +0800)
commit96f8befdd7dbc3be9f5991f805ad8d60dfb3e6d6
treee0e9f00e92a5aac39b088287f791c1476287c95e
parentcd58635dcc8f74aafa842c2015b294ff4097ba08
fix commit 88fb83a (#1622)

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`
lib/compress.js
test/compress/conditionals.js