diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-16 17:03:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 17:03:12 +0800 |
commit | b4aef753e7f65c0919c6c40b2b28d9f149bc81ed (patch) | |
tree | 33b2c9b5ea33dd349237b8e743cdc6415669b51c /lib/parse.js | |
parent | 424173d311cd9c35a10a276abdab1de902158ac2 (diff) | |
download | tracifyjs-b4aef753e7f65c0919c6c40b2b28d9f149bc81ed.tar.gz tracifyjs-b4aef753e7f65c0919c6c40b2b28d9f149bc81ed.zip |
general improvements around `AST_ForIn` (#2796)
- compress using `collapse_vars`
- remove unused `name`
- simplify `loop_body`
Diffstat (limited to 'lib/parse.js')
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js index 001587bc..eba833dc 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -1054,12 +1054,10 @@ function parse($TEXT, options) { }; function for_in(init) { - var lhs = init instanceof AST_Var ? init.definitions[0].name : null; var obj = expression(true); expect(")"); return new AST_ForIn({ init : init, - name : lhs, object : obj, body : in_loop(statement) }); |