Fix unneeded parens around unary args in new expression.

This commit is contained in:
kzc
2016-07-23 11:50:44 -04:00
committed by Richard van Velzen
parent 67cca43358
commit fb049d3a81
2 changed files with 26 additions and 1 deletions

View File

@@ -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){