From 22a038e6a23d1c1e8c5068b73f8af059521a6f2d Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Mon, 20 May 2013 08:27:37 +0300 Subject: [PATCH] Fix output of statement: `new function(){...};` Close #209 --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) || -- 2.34.1