fix `reduce_vars` on `AST_Switch` (#1671)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 25 Mar 2017 13:17:30 +0000 (21:17 +0800)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2017 13:17:30 +0000 (21:17 +0800)
commit0a65de89b97731cd83a077303dd0511ba7ff7151
tree7f8b8bafdf63651b66adc01cd18f80ea95682b3c
parent6e86ee950d98ebacef7e02515e34d758c4f836a1
fix `reduce_vars` on `AST_Switch` (#1671)

Take conditional nature of switch branches into account.

fixes #1670
lib/compress.js
test/compress/reduce_vars.js