enhance `properties` (#2412)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 28 Oct 2017 20:11:26 +0000 (04:11 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Oct 2017 20:11:26 +0000 (04:11 +0800)
commit8428326ea120dece51b70d7bba63dda8eda14fd6
tree8c634bb30a6845048dee5cc27590a4a654d7ac24
parent31f82091930b39ebb5d9358951c39ae20cf8057e
enhance `properties` (#2412)

- trim array items only if `side_effects`
- extend to non-identifier properties
lib/compress.js
test/compress/evaluate.js
test/compress/properties.js
test/compress/reduce_vars.js