enhance `collapse_vars` (#2952)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 28 Feb 2018 07:19:32 +0000 (15:19 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2018 07:19:32 +0000 (15:19 +0800)
commit36bca6934de494a79a1c1af952653eaaf9c15ed8
treeb7f98d8ef621eef6289a233c40f3cea0073bfc06
parentace581169134d9b6d4cdf6b24880f7ce122fc88e
enhance `collapse_vars` (#2952)

- `a = b, b` => `a = b`
- `a.b = c, c()` => `(a.b = c)()`
lib/compress.js
test/compress/collapse_vars.js
test/compress/pure_getters.js
test/compress/sequences.js