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

@@ -390,6 +390,7 @@ prop_function: {
options = {
evaluate: true,
properties: true,
side_effects: true,
}
input: {
console.log(
@@ -634,6 +635,7 @@ prototype_function: {
options = {
evaluate: true,
properties: true,
side_effects: true,
}
input: {
var a = ({valueOf: 0}) < 1;