diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-03 04:48:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 04:48:07 +0800 |
commit | 446fb0198bd737c8d34035cc40932ed24ca83bbb (patch) | |
tree | d4f3d841ec67e45500f67f89df46384f9cfbfa84 /lib/parse.js | |
parent | 7d3cddf9d624d169c6667a52e8d6f313d1b30159 (diff) | |
download | tracifyjs-446fb0198bd737c8d34035cc40932ed24ca83bbb.tar.gz tracifyjs-446fb0198bd737c8d34035cc40932ed24ca83bbb.zip |
extend `__PURE__` to `AST_New` (#2706)
fixes #2705
Diffstat (limited to 'lib/parse.js')
-rw-r--r-- | lib/parse.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js index 5eb75441..03455348 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -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() { |