diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-11 18:19:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 02:19:11 +0800 |
commit | 1020d3725612b7e1225765e698138570172c841a (patch) | |
tree | 5baf6e0e2e8e68852f3267ba22a199b4bbf56b3c /test/compress | |
parent | 076739db079306c103b8a6c45dde2371b25c64e4 (diff) | |
download | tracifyjs-1020d3725612b7e1225765e698138570172c841a.tar.gz tracifyjs-1020d3725612b7e1225765e698138570172c841a.zip |
fix corner case in `spread` (#4364)
fixes #4363
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/spread.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/spread.js b/test/compress/spread.js index 8af7bffb..78348758 100644 --- a/test/compress/spread.js +++ b/test/compress/spread.js @@ -758,3 +758,26 @@ issue_4361: { ] node_version: ">=8" } + +issue_4363: { + options = { + objects: true, + spread: true, + } + input: { + ({ + ...{ + set [console.log("PASS")](v) {}, + }, + }); + } + expect: { + ({ + ...{ + set [console.log("PASS")](v) {}, + }, + }); + } + expect_stdout: "PASS" + node_version: ">=8" +} |