aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2014-04-27 20:54:54 +0300
committerMihai Bazon <mihai@bazon.net>2014-04-27 20:54:54 +0300
commit025f3e9596e336ed4367d8621c920a236d6e4c17 (patch)
tree42dc8a57591f9c1d4ccc33e37e196ee62a919cc9 /lib/output.js
parent8258edd8a54cd5ed5d15a3a674f2cc716b304aeb (diff)
downloadtracifyjs-025f3e9596e336ed4367d8621c920a236d6e4c17.tar.gz
tracifyjs-025f3e9596e336ed4367d8621c920a236d6e4c17.zip
Better fix for #475
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
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){