generator: fix NewExpression arguments
This commit is contained in:
parent
6838062279
commit
72d924d85b
@ -30,10 +30,9 @@ exports.ConditionalExpression = function (node, print) {
|
||||
};
|
||||
|
||||
exports.NewExpression = function (node, print) {
|
||||
this.push("new (");
|
||||
this.push("new ");
|
||||
print(node.callee);
|
||||
this.push(")");
|
||||
if (node.arguments) {
|
||||
if (node.arguments.length) {
|
||||
this.push("(");
|
||||
this.printJoin(print, node.arguments, ", ");
|
||||
this.push(")");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user