Fix output of statement: new function(){...};

Close #209
This commit is contained in:
Mihai Bazon
2013-05-20 08:27:37 +03:00
parent f652372c9a
commit 22a038e6a2

View File

@@ -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 ) ||