`has_side_effects()` should take `AST_Switch.expression` into account (#1699)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 27 Mar 2017 10:09:35 +0000 (18:09 +0800)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2017 10:09:35 +0000 (18:09 +0800)
commitc526da59a1a9b1a1c5689cfdcc840b36850ed250
treeda61f10df9b980d1c6515dbb5697b85606c311f8
parent581630e0a71cffeadd4887a757889d6a3502275c
`has_side_effects()` should take `AST_Switch.expression` into account (#1699)

fixes #1698
lib/compress.js
test/compress/switch.js