public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f652372
)
Fix output of statement: `new function(){...};`
author
Mihai Bazon
<mihai@bazon.net>
Mon, 20 May 2013 05:27:37 +0000
(08:27 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Mon, 20 May 2013 05:27:37 +0000
(08:27 +0300)
Close #209
lib/output.js
patch
|
blob
|
history
diff --git
a/lib/output.js
b/lib/output.js
index
a13c92e
..
b510cb3
100644
(file)
--- a/
lib/output.js
+++ b/
lib/output.js
@@
-1122,7
+1122,7
@@
function OutputStream(options) {
if (p instanceof AST_Statement && p.body === node)
return true;
if ((p instanceof AST_Seq && p.car === node ) ||
- (p instanceof AST_Call && p.expression === node ) ||
+ (p instanceof AST_Call && p.expression === node
&& !(p instanceof AST_New)
) ||
(p instanceof AST_Dot && p.expression === node ) ||
(p instanceof AST_Sub && p.expression === node ) ||
(p instanceof AST_Conditional && p.condition === node ) ||