From 03ebe32a4672ab4ac56f640b88ee08a801333d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 31 May 2024 18:49:09 +0800 Subject: [PATCH 1/4] print parser package --- .github/workflows/update-parser-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-parser-tests.yml b/.github/workflows/update-parser-tests.yml index a62f29ce8747..902905c0b4b7 100644 --- a/.github/workflows/update-parser-tests.yml +++ b/.github/workflows/update-parser-tests.yml @@ -37,6 +37,7 @@ jobs: run: | yarn install --immutable --mode=skip-build yarn gulp build-rollup + cat ./packages/babel-parser/lib/index.js - name: Update test262 allow list run: | make test-test262-update-allowlist From d11fdea554ef099fe5402ad6a73e235b95bad174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sat, 1 Jun 2024 08:45:07 +0800 Subject: [PATCH 2/4] use named exports --- scripts/parser-tests/utils/parser-test-runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/parser-tests/utils/parser-test-runner.js b/scripts/parser-tests/utils/parser-test-runner.js index e26f1a1bf8d1..b88f68d22cf9 100644 --- a/scripts/parser-tests/utils/parser-test-runner.js +++ b/scripts/parser-tests/utils/parser-test-runner.js @@ -1,6 +1,6 @@ import fs from "fs/promises"; import colors from "picocolors"; -import { parse as parser } from "../../../packages/babel-parser/lib/index.js"; +import * as parser from "../../../packages/babel-parser/lib/index.js"; const dot = colors.gray("."); @@ -46,7 +46,7 @@ class TestRunner { runTest(test) { try { - this.parse(test, parser); + this.parse(test, parser.parse); test.actualError = false; } catch (err) { test.actualError = true; From 06f0d08e8ef5cad59d5cbb8e6a5db3e021f89912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sat, 1 Jun 2024 09:18:04 +0800 Subject: [PATCH 3/4] set module type as ESM --- .github/workflows/update-parser-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-parser-tests.yml b/.github/workflows/update-parser-tests.yml index 902905c0b4b7..a8d0721c3481 100644 --- a/.github/workflows/update-parser-tests.yml +++ b/.github/workflows/update-parser-tests.yml @@ -36,8 +36,8 @@ jobs: - name: Build babel parser run: | yarn install --immutable --mode=skip-build + node scripts/set-module-type.js module yarn gulp build-rollup - cat ./packages/babel-parser/lib/index.js - name: Update test262 allow list run: | make test-test262-update-allowlist From 34b8465fc5c83d4e4d4acdd7db25ec89ef29349e Mon Sep 17 00:00:00 2001 From: Babel Bot Date: Sat, 1 Jun 2024 01:19:55 +0000 Subject: [PATCH 4/4] chore: update test262 to 249657722525cc8e43b1ddb91f8df0b4b011fcf6 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cfa505347887..d4416c70ea69 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ FLOW_COMMIT = 105ad30f566f401db9cafcb49cd2831fb29e87c5 -TEST262_COMMIT = ac778eaa29ba68bbc4f7e4f73dc44d5d674caff4 +TEST262_COMMIT = 249657722525cc8e43b1ddb91f8df0b4b011fcf6 TYPESCRIPT_COMMIT = d87d0adcd30ac285393bf3bfbbb4d94d50c4f3c9 SOURCES = packages codemods eslint