improve `collapse_vars` (#2591)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 14 Dec 2017 07:31:35 +0000 (15:31 +0800)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2017 07:31:35 +0000 (15:31 +0800)
commit738fd52bc46c043db4a0cd415671f54b392ee6ac
tree052427d73b097a3efb2db5ece2318eae4857262b
parentd18979bb23358fbdb153568109a5b564cd984920
improve `collapse_vars` (#2591)

- handle single-use assignments other than `AST_VarDef`
- scan `AST_Call` for candidates
lib/compress.js
test/compress/collapse_vars.js