diff options
Diffstat (limited to 'test/compress/side_effects.js')
-rw-r--r-- | test/compress/side_effects.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/compress/side_effects.js b/test/compress/side_effects.js index 0654a4ce..6428b172 100644 --- a/test/compress/side_effects.js +++ b/test/compress/side_effects.js @@ -470,3 +470,39 @@ issue_4325: { } expect_stdout: "PASS" } + +issue_4366_1: { + options = { + side_effects: true, + } + input: { + ({ + p: 42, + get p() {}, + q: console.log("PASS"), + }); + } + expect: { + console.log("PASS"); + } + expect_stdout: "PASS" + node_version: ">=4" +} + +issue_4366_2: { + options = { + side_effects: true, + } + input: { + ({ + set p(v) {}, + q: console.log("PASS"), + p: 42, + }); + } + expect: { + console.log("PASS"); + } + expect_stdout: "PASS" + node_version: ">=4" +} |