fix a couple of bugs in `global_defs` (#1802)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 8 Apr 2017 08:46:25 +0000 (16:46 +0800)
committerGitHub <noreply@github.com>
Sat, 8 Apr 2017 08:46:25 +0000 (16:46 +0800)
commit0479ff0c54e8eea90ff5471bd9f77cb7f2e355c3
tree539a0a54ad70a0792e58d7b22578234ac6cf36b2
parentcf72fe552f5a51ccfe40c32e0fb86d549e0ca848
fix a couple of bugs in `global_defs` (#1802)

- `optimize()` substituted expression
- compute nested property string correctly

fixes #1801

Miscellaneous
- reset optimisation flags on all node types
lib/compress.js
test/compress/global_defs.js