extend __PURE__ to AST_New (#2706)

fixes #2705
This commit is contained in:
Alex Lam S.L
2018-01-03 04:48:07 +08:00
committed by GitHub
parent 7d3cddf9d6
commit 446fb0198b
2 changed files with 125 additions and 2 deletions

View File

@@ -1225,12 +1225,14 @@ function parse($TEXT, options) {
} else {
args = [];
}
return subscripts(new AST_New({
var call = new AST_New({
start : start,
expression : newexp,
args : args,
end : prev()
}), allow_calls);
});
mark_pure(call);
return subscripts(call, allow_calls);
};
function as_atom_node() {