From 3c8a0bdff49b5613fd65ec4a1420451bb69bd104 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 6 Feb 2013 11:28:49 +0200 Subject: [PATCH] Fix parens for AST_New Close #114 --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/output.js b/lib/output.js index 5e668201..27b35fe6 100644 --- a/lib/output.js +++ b/lib/output.js @@ -509,7 +509,7 @@ function OutputStream(options) { PARENS(AST_New, function(output){ var p = output.parent(); if (no_constructor_parens(this, output) - && (p instanceof AST_Dot // (new Date).getTime() + && (p instanceof AST_PropAccess // (new Date).getTime(), (new Date)["getTime"]() || p instanceof AST_Call && p.expression === this)) // (new foo)(bar) return true; }); -- 2.34.1