Better fix for #475
authorMihai Bazon <mihai@bazon.net>
Sun, 27 Apr 2014 17:54:54 +0000 (20:54 +0300)
committerMihai Bazon <mihai@bazon.net>
Sun, 27 Apr 2014 17:54:54 +0000 (20:54 +0300)
lib/output.js

index 4a3bfd5..26f230a 100644 (file)
@@ -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){