From: Mihai Bazon Date: Wed, 6 Feb 2013 09:28:49 +0000 (+0200) Subject: Fix parens for AST_New X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3c8a0bdff49b5613fd65ec4a1420451bb69bd104;p=UglifyJS.git Fix parens for AST_New Close #114 --- 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; });