remove Symbol's argument when we're unsafe and it's undeclared
This commit is contained in:
parent
6f93a8d4a1
commit
ac1d3f0e88
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user