fix destructuring bugs in mangle and compress (#1992)

- destructuring mangle
- destructuring array default values

fixes #1335
This commit is contained in:
kzc
2017-05-22 14:53:01 -04:00
committed by Alex Lam S.L
parent a658cd84a5
commit 7bcb442e4c
3 changed files with 146 additions and 5 deletions

View File

@@ -569,7 +569,6 @@ AST_Toplevel.DEFMETHOD("mangle_names", function(options){
});
this.walk(tw);
to_mangle.forEach(function(def){
if (def.destructuring && !def.destructuring.is_array) return;
def.mangle(options);
});