diff --git a/.github/workflows/update-parser-tests.yml b/.github/workflows/update-parser-tests.yml index a62f29ce8747..a8d0721c3481 100644 --- a/.github/workflows/update-parser-tests.yml +++ b/.github/workflows/update-parser-tests.yml @@ -36,6 +36,7 @@ jobs: - name: Build babel parser run: | yarn install --immutable --mode=skip-build + node scripts/set-module-type.js module yarn gulp build-rollup - name: Update test262 allow list run: | 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 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;