enhance properties (#2412)

- trim array items only if `side_effects`
- extend to non-identifier properties
This commit is contained in:
Alex Lam S.L
2017-10-29 04:11:26 +08:00
committed by GitHub
parent 31f8209193
commit 8428326ea1
4 changed files with 125 additions and 82 deletions

View File

@@ -2973,6 +2973,7 @@ obj_var_2: {
passes: 2,
properties: true,
reduce_vars: true,
side_effects: true,
toplevel: true,
unsafe: true,
unused: true,