Merge branch 'master' into harmony

This commit is contained in:
Richard van Velzen
2015-09-13 14:17:45 +02:00
5 changed files with 44 additions and 13 deletions

View File

@@ -1274,7 +1274,7 @@ function parse($TEXT, options) {
});
};
var new_ = function() {
var new_ = function(allow_calls) {
var start = S.token;
expect_token("operator", "new");
var newexp = expr_atom(false), args;
@@ -1289,7 +1289,7 @@ function parse($TEXT, options) {
expression : newexp,
args : args,
end : prev()
}), true);
}), allow_calls);
};
function as_atom_node() {
@@ -1333,7 +1333,7 @@ function parse($TEXT, options) {
var expr_atom = function(allow_calls) {
if (is("operator", "new")) {
return new_();
return new_(allow_calls);
}
var start = S.token;
if (is("punc")) {