fix reduce_vars on AST_Switch (#1671)
Take conditional nature of switch branches into account. fixes #1670
This commit is contained in:
@@ -341,7 +341,7 @@ merge(Compressor.prototype, {
|
||||
pop();
|
||||
return true;
|
||||
}
|
||||
if (node instanceof AST_Catch) {
|
||||
if (node instanceof AST_Catch || node instanceof AST_SwitchBranch) {
|
||||
push();
|
||||
descend();
|
||||
pop();
|
||||
|
||||
Reference in New Issue
Block a user