fix `dead_code` on `AST_Switch` (#1667)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 25 Mar 2017 08:21:42 +0000 (16:21 +0800)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2017 08:21:42 +0000 (16:21 +0800)
commit8ca2401ebe024287ce1133d2707b1a8ce91f4e6c
treefd3c61620059e83a4d110181ca32e4804270637b
parent491f16c766c92e20260b99696b6081f333ceaf0f
fix `dead_code` on `AST_Switch` (#1667)

Need to call `extract_declarations_from_unreachable_code()`.

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