From: Mihai Bazon Date: Sun, 27 Apr 2014 17:54:54 +0000 (+0300) Subject: Better fix for #475 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=025f3e9596e336ed4367d8621c920a236d6e4c17;p=UglifyJS.git Better fix for #475 --- diff --git a/lib/output.js b/lib/output.js index 4a3bfd53..26f230af 100644 --- a/lib/output.js +++ b/lib/output.js @@ -456,7 +456,7 @@ function OutputStream(options) { PARENS(AST_Unary, function(output){ var p = output.parent(); return (p instanceof AST_PropAccess && p.expression === this) - || (p instanceof AST_Unary && p.operator == "+" && this.operator == "+"); + || (p instanceof AST_Unary && p.operator == this.operator); }); PARENS(AST_Seq, function(output){