diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/drop-unused.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index 6ed193e9..ea7ee02f 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -2062,3 +2062,22 @@ issue_3427_2: { } expect_stdout: "PASS" } + +issue_3495: { + options = { + dead_code: true, + pure_getters: "strict", + side_effects: true, + unused: true, + } + input: { + console.log(function f() { + f = 0; + var a = f.p; + }()); + } + expect: { + console.log(void 0); + } + expect_stdout: "undefined" +} |