inline property access of object literal (#2209)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 6 Jul 2017 13:51:58 +0000 (21:51 +0800)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2017 13:51:58 +0000 (21:51 +0800)
commit4b6ca5e742787c59969b9b00442cf85bbec19ed5
tree23542b1219099a92e4c10f452456f8ee275a93f5
parent9306da3c58831fabc93dfae6a7ea4f45d42183d4
inline property access of object literal (#2209)

- only if property value is side-effect-free
- guard by `unsafe`

fixes #2208
lib/compress.js
test/compress/evaluate.js
test/compress/global_defs.js
test/compress/properties.js