diff options
Diffstat (limited to 'test/compress/drop-unused.js')
-rw-r--r-- | test/compress/drop-unused.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index 9dc45e57..b75c3ac5 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -1982,3 +1982,26 @@ issue_3192: { "foo bar", ] } + +issue_3233: { + options = { + pure_getters: "strict", + side_effects: true, + unused: true, + } + input: { + var a = function b() { + b.c = "PASS"; + }; + a(); + console.log(a.c); + } + expect: { + var a = function b() { + b.c = "PASS"; + }; + a(); + console.log(a.c); + } + expect_stdout: "PASS" +} |