diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-05-20 08:27:37 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-05-20 08:27:37 +0300 |
commit | 22a038e6a23d1c1e8c5068b73f8af059521a6f2d (patch) | |
tree | add883e8dfdf6310c0308b94ddac7fef66a0bc76 /lib | |
parent | f652372c9a55ac7c6c3d965f0dff47bf0d0c0b3e (diff) | |
download | tracifyjs-22a038e6a23d1c1e8c5068b73f8af059521a6f2d.tar.gz tracifyjs-22a038e6a23d1c1e8c5068b73f8af059521a6f2d.zip |
Fix output of statement: `new function(){...};`
Close #209
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index a13c92ea..b510cb35 100644 --- 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 ) || |