public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8ba27
)
Fix parens for AST_New
author
Mihai Bazon
<mihai@bazon.net>
Wed, 6 Feb 2013 09:28:49 +0000
(11:28 +0200)
committer
Mihai Bazon
<mihai@bazon.net>
Wed, 6 Feb 2013 09:28:49 +0000
(11:28 +0200)
Close #114
lib/output.js
patch
|
blob
|
history
diff --git
a/lib/output.js
b/lib/output.js
index
5e66820
..
27b35fe
100644
(file)
--- 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;
});