From 5f9749a95beafd6a11d039230ece2490b56eb90c Mon Sep 17 00:00:00 2001 From: army8735 Date: Wed, 4 Jun 2014 16:39:25 +0800 Subject: [PATCH] bugfix --- dist/parser/es6/Parser.js | 2 +- dist/parser/js/Parser.js | 4 ++-- src/parser/es6/Parser.js | 2 +- src/parser/js/Parser.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/parser/es6/Parser.js b/dist/parser/es6/Parser.js index 67fa360..acfccd5 100644 --- a/dist/parser/es6/Parser.js +++ b/dist/parser/es6/Parser.js @@ -1443,7 +1443,7 @@ var Class = require('../../util/Class'); return this.newexpr(0, noIn, noOf); } else { - return this.callexpr(noIn, noOf); + return this.callexpr(null, noIn, noOf); } }, newexpr: function(depth, noIn, noOf) { diff --git a/dist/parser/js/Parser.js b/dist/parser/js/Parser.js index 96233e4..db2f3a4 100644 --- a/dist/parser/js/Parser.js +++ b/dist/parser/js/Parser.js @@ -839,10 +839,10 @@ var Class = require('../../util/Class'); return this.newexpr(0, noIn); } else { - return this.callexpr(noIn); + return this.callexpr(null, noIn); } }, - newexpr: function(depth) { + newexpr: function(depth, noIn) { depth = depth || 0; var node = new Node(Node.NEWEXPR); node.add(this.match('new')); diff --git a/src/parser/es6/Parser.js b/src/parser/es6/Parser.js index b06c879..8069d42 100644 --- a/src/parser/es6/Parser.js +++ b/src/parser/es6/Parser.js @@ -1435,7 +1435,7 @@ var Parser = Class(function(lexer) { return this.newexpr(0, noIn, noOf); } else { - return this.callexpr(noIn, noOf); + return this.callexpr(null, noIn, noOf); } }, newexpr: function(depth, noIn, noOf) { diff --git a/src/parser/js/Parser.js b/src/parser/js/Parser.js index c88175f..c3aad35 100644 --- a/src/parser/js/Parser.js +++ b/src/parser/js/Parser.js @@ -831,10 +831,10 @@ var Parser = Class(function(lexer) { return this.newexpr(0, noIn); } else { - return this.callexpr(noIn); + return this.callexpr(null, noIn); } }, - newexpr: function(depth) { + newexpr: function(depth, noIn) { depth = depth || 0; var node = new Node(Node.NEWEXPR); node.add(this.match('new'));