Merge pull request #774 from fabiosantoscode/feature/harmony-symbol

remove Symbol's argument when we're unsafe and Symbol is undeclared
This commit is contained in:
Richard van Velzen 2015-08-21 11:51:02 +02:00
commit 9f9179ba1a

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) {