Commit Graph

4 Commits

Author SHA1 Message Date
alexlamsl
dba64ee93d fix dead_code on AST_Switch
Need to call `extract_declarations_from_unreachable_code()`.

fixes #1663
2017-03-25 15:15:33 +08:00
Mihai Bazon
dac6efb43d Drop last default: if it's the last branch and empty
Close #141
2013-03-01 13:12:03 +02:00
Mihai Bazon
bdfcbf496b better solution for the last test in constant switch folding 2012-11-14 12:21:43 +02:00
Mihai Bazon
dba8da4800 optimize constant switch blocks
ref. mishoo/UglifyJS#441
2012-11-14 12:06:07 +02:00