From ac1d3f0e8891b250e756d2c8266d632ef6b7f2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Fri, 14 Aug 2015 22:44:16 +0100 Subject: [PATCH] remove Symbol's argument when we're unsafe and it's undeclared --- lib/compress.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/compress.js b/lib/compress.js index 35ea6c77..b6481198 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2062,6 +2062,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) {