remove Symbol's argument when we're unsafe and it's undeclared

This commit is contained in:
Fábio Santos 2015-08-14 22:44:16 +01:00 committed by Burak Can
parent 6f93a8d4a1
commit ac1d3f0e88

View File

@ -2062,6 +2062,11 @@ merge(Compressor.prototype, {
} }
} }
break; break;
case "Symbol":
// Symbol's argument is only used for debugging.
self.args = [];
return self;
break;
} }
} }
else if (exp instanceof AST_Dot && exp.property == "toString" && self.args.length == 0) { else if (exp instanceof AST_Dot && exp.property == "toString" && self.args.length == 0) {