diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-29 01:21:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 01:21:08 +0800 |
commit | 482e1baea3672fc1bc39594a5615487d05a15f5f (patch) | |
tree | 4b82778d94b722624446d529502f01f88aca41ee /test/compress/pure_getters.js | |
parent | e4f5ba1d294c7e22c503dc29c141a6613fbb0142 (diff) | |
download | tracifyjs-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.js | 20 |
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: {} +} |