Alex Lam S.L
|
8ca2401ebe
|
fix dead_code on AST_Switch (#1667)
Need to call `extract_declarations_from_unreachable_code()`.
fixes #1663
|
2017-03-25 16:21:42 +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 |
|