From 7d3c460a36877e5b45a54844eababe1a14eaa117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Fri, 20 Sep 2024 14:42:18 +0900 Subject: [PATCH] Update test refs --- crates/swc/tests/fixture/issues-6xxx/6460/1/output/index.js | 2 +- crates/swc/tests/fixture/issues-6xxx/6888/output/index.js | 4 +--- crates/swc/tests/fixture/issues-8xxx/8193/output/1.js | 2 -- crates/swc/tests/fixture/issues-9xxx/9544/output/1.js | 4 ++++ 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 crates/swc/tests/fixture/issues-9xxx/9544/output/1.js diff --git a/crates/swc/tests/fixture/issues-6xxx/6460/1/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6460/1/output/index.js index f7eefeb17964c..5cd3e93d38993 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6460/1/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6460/1/output/index.js @@ -1,6 +1,6 @@ require("core-js/modules/es.array.at.js"); require("core-js/modules/es.regexp.exec.js"); -require("core-js/modules/es.string.at-alternative.js"); +require("core-js/modules/es.string.at.js"); require("core-js/modules/es.string.split.js"); '1.2.3'.split('.').at(-1); [ diff --git a/crates/swc/tests/fixture/issues-6xxx/6888/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6888/output/index.js index 9c9863d1964d9..bd79dd12d9357 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6888/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6888/output/index.js @@ -1,8 +1,6 @@ require("core-js/modules/es.array.at.js"); require("core-js/modules/es.regexp.exec.js"); -require("core-js/modules/es.string.at-alternative.js"); -require("core-js/modules/es.string.replace-all.js"); -require("core-js/modules/es.string.replace.js"); +require("core-js/modules/es.string.at.js"); require("core-js/modules/es.string.split.js"); 'test'.replaceAll('', ''); '1.2.3'.split('.').at(-1); diff --git a/crates/swc/tests/fixture/issues-8xxx/8193/output/1.js b/crates/swc/tests/fixture/issues-8xxx/8193/output/1.js index e911a0407a35c..30c7f2ce07181 100644 --- a/crates/swc/tests/fixture/issues-8xxx/8193/output/1.js +++ b/crates/swc/tests/fixture/issues-8xxx/8193/output/1.js @@ -1,5 +1,3 @@ -require("core-js/modules/es.object.create.js"); -require("core-js/modules/esnext.object.group-by.js"); var data = [ { name: 'a', diff --git a/crates/swc/tests/fixture/issues-9xxx/9544/output/1.js b/crates/swc/tests/fixture/issues-9xxx/9544/output/1.js new file mode 100644 index 0000000000000..6fad7029c3844 --- /dev/null +++ b/crates/swc/tests/fixture/issues-9xxx/9544/output/1.js @@ -0,0 +1,4 @@ +require("core-js/modules/web.dom-collections.for-each.js"); +document.querySelectorAll('div').forEach(function(el) { + console.log(el); +});