Skip to content

Commit 5f2d36b

Browse files
committed
test(ast/estree): update acorn-test262 (oxc-project#9816)
Syncing oxc-project/acorn-test262#8. Adding back `null` causes a new mismatch due to ts-eslint has `ExpresssionStatement.directive: string | undefined` https://github.com/typescript-eslint/typescript-eslint/blob/543d36ce9aacdb75e8bf85860984704dfbf8f8ff/packages/ast-spec/src/statement/ExpressionStatement/spec.ts#L7.
1 parent ee970b1 commit 5f2d36b

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

.github/actions/clone-submodules/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ runs:
3838
show-progress: false
3939
repository: oxc-project/acorn-test262
4040
path: tasks/coverage/acorn-test262
41-
ref: ad6f20525e19e8fb66c35f3513ed0fa7ac06fbd8 # Latest main at 14/3/25
41+
ref: eb5e9976435fafd45e2859a4b668a77ec75ce625 # Latest main at 17/3/25

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ submodules:
4040
just clone-submodule tasks/coverage/babel https://github.com/babel/babel.git 578ac4df1c8a05f01350553950dbfbbeaac013c2
4141
just clone-submodule tasks/coverage/typescript https://github.com/microsoft/TypeScript.git 15392346d05045742e653eab5c87538ff2a3c863
4242
just clone-submodule tasks/prettier_conformance/prettier https://github.com/prettier/prettier.git 7584432401a47a26943dd7a9ca9a8e032ead7285
43-
just clone-submodule tasks/coverage/acorn-test262 https://github.com/oxc-project/acorn-test262 ad6f20525e19e8fb66c35f3513ed0fa7ac06fbd8
43+
just clone-submodule tasks/coverage/acorn-test262 https://github.com/oxc-project/acorn-test262 eb5e9976435fafd45e2859a4b668a77ec75ce625
4444
just update-transformer-fixtures
4545

4646
# Install git pre-commit to format files

tasks/coverage/snapshots/estree_acorn_jsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
commit: ad6f2052
1+
commit: eb5e9976
22

33
estree_acorn_jsx Summary:
44
AST Parsed : 39/39 (100.00%)

tasks/coverage/snapshots/estree_typescript.snap

+22-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ commit: 15392346
22

33
estree_typescript Summary:
44
AST Parsed : 10628/10725 (99.10%)
5-
Positive Passed: 72/10725 (0.67%)
5+
Positive Passed: 55/10725 (0.51%)
66
Mismatch: tasks/coverage/typescript/tests/cases/compiler/2dArrays.ts
77
Mismatch: tasks/coverage/typescript/tests/cases/compiler/APILibCheck.ts
88
Mismatch: tasks/coverage/typescript/tests/cases/compiler/APISample_Watch.ts
@@ -876,6 +876,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnClassMethod1.t
876876
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnDecoratedClassDeclaration.ts
877877
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnElidedModule1.ts
878878
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnExportEnumDeclaration.ts
879+
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnExpressionStatement1.ts
879880
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnIfStatement1.ts
880881
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnImportStatement1.ts
881882
Mismatch: tasks/coverage/typescript/tests/cases/compiler/commentOnImportStatement2.ts
@@ -2014,6 +2015,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyArgumentsListComme
20142015
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyArrayDestructuringExpressionVisitedByTransformer.ts
20152016
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyDeclarationEmitIsModule.ts
20162017
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyEnum.ts
2018+
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyExpr.ts
20172019
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyGenericParamList.ts
20182020
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyIndexer.ts
20192021
Mismatch: tasks/coverage/typescript/tests/cases/compiler/emptyModuleName.ts
@@ -4489,6 +4491,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/compiler/nounusedTypeParameterCo
44894491
Mismatch: tasks/coverage/typescript/tests/cases/compiler/null.ts
44904492
Mismatch: tasks/coverage/typescript/tests/cases/compiler/nullKeyword.ts
44914493
Mismatch: tasks/coverage/typescript/tests/cases/compiler/nullableFunctionError.ts
4494+
Mismatch: tasks/coverage/typescript/tests/cases/compiler/numberAsInLHS.ts
44924495
Mismatch: tasks/coverage/typescript/tests/cases/compiler/numberAssignableToEnumInsideUnion.ts
44934496
Mismatch: tasks/coverage/typescript/tests/cases/compiler/numberOnLeftSideOfInExpression.ts
44944497
Mismatch: tasks/coverage/typescript/tests/cases/compiler/numberToString.ts
@@ -8027,10 +8030,10 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedE
80278030
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts
80288031
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts
80298032
tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts
8030-
serde_json::from_str(estree_json) error: unexpected end of hex escape at line 29 column 29
8033+
serde_json::from_str(estree_json) error: unexpected end of hex escape at line 30 column 29
80318034

80328035
tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts
8033-
serde_json::from_str(estree_json) error: lone leading surrogate in hex escape at line 29 column 28
8036+
serde_json::from_str(estree_json) error: lone leading surrogate in hex escape at line 30 column 28
80348037

80358038
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts
80368039
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts
@@ -8046,10 +8049,10 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedE
80468049
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts
80478050
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts
80488051
tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts
8049-
serde_json::from_str(estree_json) error: unexpected end of hex escape at line 36 column 36
8052+
serde_json::from_str(estree_json) error: unexpected end of hex escape at line 37 column 36
80508053

80518054
tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts
8052-
serde_json::from_str(estree_json) error: lone leading surrogate in hex escape at line 36 column 35
8055+
serde_json::from_str(estree_json) error: lone leading surrogate in hex escape at line 37 column 35
80538056

80548057
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts
80558058
Mismatch: tasks/coverage/typescript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts
@@ -9935,6 +9938,8 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/G
99359938
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts1.ts
99369939
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts2.ts
99379940
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInVariableDeclaration1.ts
9941+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity1.ts
9942+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity10.ts
99389943
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity11.ts
99399944
Cannot assign to this expression
99409945
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity15.ts
@@ -9943,6 +9948,8 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmasc
99439948
Cannot assign to this expression
99449949
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity20.ts
99459950
Cannot assign to this expression
9951+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity5.ts
9952+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity6.ts
99469953
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Generics/parserObjectCreation1.ts
99479954
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration1.ts
99489955
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration2.ts
@@ -10096,6 +10103,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/R
1009610103
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts
1009710104
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parserTernaryAndCommaOperators1.ts
1009810105
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parseRegularExpressionMixedWithComments.ts
10106+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression1.ts
1009910107
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression2.ts
1010010108
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression3.ts
1010110109
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression4.ts
@@ -10136,6 +10144,7 @@ A 'return' statement can only be used within a function body.
1013610144
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/ReturnStatements/parserReturnStatement3.ts
1013710145
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/ReturnStatements/parserReturnStatement4.ts
1013810146
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserDoStatement1.d.ts
10147+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserDoStatement2.ts
1013910148
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts
1014010149
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts
1014110150
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts
@@ -10178,6 +10187,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/S
1017810187
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts
1017910188
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15-negative.ts
1018010189
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15.ts
10190+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode16.ts
1018110191
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts
1018210192
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3-negative.ts
1018310193
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3.ts
@@ -10266,6 +10276,7 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/p
1026610276
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parserUnicode3.ts
1026710277
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parserUnicodeWhitespaceCharacter1.ts
1026810278
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts
10279+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parserVoidExpression1.ts
1026910280
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName0.ts
1027010281
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts
1027110282
Mismatch: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName10.ts
@@ -10453,12 +10464,18 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/salsa/typeFromProper
1045310464
tasks/coverage/typescript/tests/cases/conformance/salsa/varRequireFromTypescript.ts
1045410465
Unexpected estree file content error: 1 != 2
1045510466

10467+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral1.ts
10468+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral5.ts
10469+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral7.ts
1045610470
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts
1045710471
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerAdditiveExpression1.ts
1045810472
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts
1045910473
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerEnum1.ts
1046010474
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerImportDeclaration1.ts
1046110475
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerNonAsciiHorizontalWhitespace.ts
10476+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts
10477+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts
10478+
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts
1046210479
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts
1046310480
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerS7.3_A1.1_T2.ts
1046410481
Mismatch: tasks/coverage/typescript/tests/cases/conformance/scanner/ecmascript5/scannerS7.6_A4.2_T1.ts

0 commit comments

Comments
 (0)