aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-05-26 15:25:07 +0100
committerGitHub <noreply@github.com>2021-05-26 22:25:07 +0800
commit362abe0ffb54c20bfc5a2d2d60c3ca2fe5ecd76e (patch)
tree8236e7ded88cdaba4d07d8e2e6cd111dbc2007e1 /test/compress
parente3798d9a76704498819cc380166d62f2c8a9ff36 (diff)
downloadtracifyjs-362abe0ffb54c20bfc5a2d2d60c3ca2fe5ecd76e.tar.gz
tracifyjs-362abe0ffb54c20bfc5a2d2d60c3ca2fe5ecd76e.zip
enhance `unused` (#4968)
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/default-values.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/compress/default-values.js b/test/compress/default-values.js
index 56fa5c95..c65ccd35 100644
--- a/test/compress/default-values.js
+++ b/test/compress/default-values.js
@@ -598,6 +598,7 @@ unused_var_1: {
unused_var_2: {
options = {
+ pure_getters: "strict",
toplevel: true,
unused: true,
}
@@ -609,11 +610,7 @@ unused_var_2: {
};
}
expect: {
- var {
- p: [] = [ console.log("FAIL") ],
- } = {
- p: [ console.log("PASS") ],
- };
+ console.log("PASS");
}
expect_stdout: "PASS"
node_version: ">=6"