diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/spread.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/spread.js b/test/compress/spread.js index b7a6f753..01818dc3 100644 --- a/test/compress/spread.js +++ b/test/compress/spread.js @@ -369,3 +369,33 @@ unused_var_side_effects: { expect_stdout: "PASS" node_version: ">=8" } + +issue_4329: { + options = { + properties: true, + } + input: { + console.log({ + ...{ + get 0() { + return "FAIL"; + }, + ...{ + 0: "PASS", + }, + }, + }[0]); + } + expect: { + console.log({ + ...{ + get 0() { + return "FAIL"; + }, + [0]: "PASS", + }, + }[0]); + } + expect_stdout: "PASS" + node_version: ">=8" +} |