From 025f3e9596e336ed4367d8621c920a236d6e4c17 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 27 Apr 2014 20:54:54 +0300 Subject: Better fix for #475 --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/output.js') 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){ -- cgit v1.2.3