aboutsummaryrefslogtreecommitdiff
path: root/test/compress/pure_getters.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-05-29 01:21:08 +0800
committerGitHub <noreply@github.com>2019-05-29 01:21:08 +0800
commit482e1baea3672fc1bc39594a5615487d05a15f5f (patch)
tree4b82778d94b722624446d529502f01f88aca41ee /test/compress/pure_getters.js
parente4f5ba1d294c7e22c503dc29c141a6613fbb0142 (diff)
downloadtracifyjs-482e1baea3672fc1bc39594a5615487d05a15f5f.tar.gz
tracifyjs-482e1baea3672fc1bc39594a5615487d05a15f5f.zip
enhance `assignments` & `unused` (#3428)
closes #3427
Diffstat (limited to 'test/compress/pure_getters.js')
-rw-r--r--test/compress/pure_getters.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/pure_getters.js b/test/compress/pure_getters.js
index b6e42f9d..54c89c6d 100644
--- a/test/compress/pure_getters.js
+++ b/test/compress/pure_getters.js
@@ -1187,3 +1187,23 @@ drop_arguments: {
}
expect_stdout: "PASS"
}
+
+issue_3427: {
+ options = {
+ assignments: true,
+ collapse_vars: true,
+ inline: true,
+ pure_getters: "strict",
+ sequences: true,
+ side_effects: true,
+ toplevel: true,
+ unused: true,
+ }
+ input: {
+ var a;
+ (function(b) {
+ b.p = 42;
+ })(a || (a = {}));
+ }
+ expect: {}
+}