aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-02-06 11:28:49 +0200
committerMihai Bazon <mihai@bazon.net>2013-02-06 11:28:49 +0200
commit3c8a0bdff49b5613fd65ec4a1420451bb69bd104 (patch)
treee6e0ee39250d9118aec269a9cd371e9e250f06b6
parent9e8ba27dcdfd39d01b8aa0bbf92fd03a44844acc (diff)
downloadtracifyjs-3c8a0bdff49b5613fd65ec4a1420451bb69bd104.tar.gz
tracifyjs-3c8a0bdff49b5613fd65ec4a1420451bb69bd104.zip
Fix parens for AST_New
Close #114
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
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;
});