Fix invalid removal of left side in && and || compression
authorRichard van Velzen <rvanvelzen1@gmail.com>
Wed, 11 Feb 2015 20:05:49 +0000 (21:05 +0100)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Wed, 11 Feb 2015 20:08:41 +0000 (21:08 +0100)
commit992b6b9fcce47ca67ecb14675f10b172ce7a99b5
tree1a9dd765655e5af97392fae25dcb285462cf8aa7
parent7b7134405118e944f87772edc41c3ddec856cdff
Fix invalid removal of left side in && and || compression

See #637. This does not produce the optimal result, but it does prevent the removal of non-side-effect-free code.
lib/compress.js
test/compress/issue-637.js [new file with mode: 0644]