Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Jun 4, 2014
1 parent 9cffb61 commit 5f9749a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/parser/es6/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions dist/parser/js/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion src/parser/es6/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/parser/js/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 5f9749a

Please sign in to comment.