aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2016-07-23 11:50:44 -0400
committerRichard van Velzen <rvanvelzen1@gmail.com>2016-08-14 21:38:38 +0200
commitfb049d3a81b744a5facf1f032b8b2815c410f178 (patch)
tree3ad06abdddb20e255d0595c637226479874a04d6 /lib
parent67cca43358cfcf7ff2e7c9e5532bc975fb2591d0 (diff)
downloadtracifyjs-fb049d3a81b744a5facf1f032b8b2815c410f178.tar.gz
tracifyjs-fb049d3a81b744a5facf1f032b8b2815c410f178.zip
Fix unneeded parens around unary args in new expression.
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index 324f96ed..801f7516 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -533,7 +533,7 @@ function OutputStream(options) {
PARENS([ AST_Unary, AST_Undefined ], function(output){
var p = output.parent();
return p instanceof AST_PropAccess && p.expression === this
- || p instanceof AST_New;
+ || p instanceof AST_Call && p.expression === this;
});
PARENS(AST_Seq, function(output){