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
parent 56c0b834d6
commit 4c12cccff9

View File

@@ -1831,6 +1831,11 @@ merge(Compressor.prototype, {
}
}
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) {