Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test262 #12

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/update-parser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FLOW_COMMIT = 105ad30f566f401db9cafcb49cd2831fb29e87c5
TEST262_COMMIT = ac778eaa29ba68bbc4f7e4f73dc44d5d674caff4
TEST262_COMMIT = 249657722525cc8e43b1ddb91f8df0b4b011fcf6
TYPESCRIPT_COMMIT = d87d0adcd30ac285393bf3bfbbb4d94d50c4f3c9

SOURCES = packages codemods eslint
Expand Down
4 changes: 2 additions & 2 deletions scripts/parser-tests/utils/parser-test-runner.js
Original file line number Diff line number Diff line change
@@ -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(".");

Expand Down Expand Up @@ -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;
Expand Down