aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-10-29 04:11:26 +0800
committerGitHub <noreply@github.com>2017-10-29 04:11:26 +0800
commit8428326ea120dece51b70d7bba63dda8eda14fd6 (patch)
tree8c634bb30a6845048dee5cc27590a4a654d7ac24 /test/compress/evaluate.js
parent31f82091930b39ebb5d9358951c39ae20cf8057e (diff)
downloadtracifyjs-8428326ea120dece51b70d7bba63dda8eda14fd6.tar.gz
tracifyjs-8428326ea120dece51b70d7bba63dda8eda14fd6.zip
enhance `properties` (#2412)
- trim array items only if `side_effects` - extend to non-identifier properties
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index dc8ceb62..64728c06 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -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;