From fb049d3a81b744a5facf1f032b8b2815c410f178 Mon Sep 17 00:00:00 2001 From: kzc Date: Sat, 23 Jul 2016 11:50:44 -0400 Subject: Fix unneeded parens around unary args in new expression. --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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){ -- cgit v1.2.3