diff --git a/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/input.js b/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/input.js new file mode 100644 index 000000000000..389ddef17ae0 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/input.js @@ -0,0 +1,8 @@ +var ref = [ + , { + toUpperCase() { + console.log(this) + } + } +], key = ref[0], value = ref[1]; +value.toUpperCase(); diff --git a/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/output.js b/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/output.js new file mode 100644 index 000000000000..e4adab9b1b78 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/pr/6169/2/output.js @@ -0,0 +1,9 @@ +var ref = [ + , + { + toUpperCase () { + console.log(this); + } + } +]; +(ref[0], ref[1]).toUpperCase();