Skip to content

Commit

Permalink
chore: fix parser-test allowlist (#14925)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Sep 13, 2022
1 parent bb8774d commit 57d2b47
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions scripts/parser-tests/typescript/allowlist.txt
Expand Up @@ -11,22 +11,7 @@ exportDeclarationsInAmbientNamespaces2.ts
multipleExports.ts


# 143 valid programs produced a parsing error

#invalid programs did not produce a parsing error

bigintIndex.ts
classExpressionWithDecorator1.ts
collisionArgumentsArrowFunctions.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
collisionArgumentsFunction.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
collisionArgumentsFunctionExpressions.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
dynamicImportTrailingComma.ts
es3-oldStyleOctalLiteralInEnums.ts # We don't support ES3-style octal literal errors.
exportDeclarationsInAmbientNamespaces2.ts
multipleExports.ts


#valid programs produced a parsing error
# 139 valid programs produced a parsing error

ArrowFunctionExpression1.ts
MemberAccessorDeclaration15.ts
Expand Down Expand Up @@ -94,8 +79,8 @@ exportInterfaceClassAndValue.ts
exportSameNameFuncVar.ts
exportSpecifierAndExportedMemberDeclaration.ts
exportSpecifierAndLocalMemberDeclaration.ts
exportSpecifierForAGlobal.ts
exportSpecifierReferencingOuterDeclaration2.ts
exportSpecifierForAGlobal.ts # We handle this fine, but it doesn't consider the different files together
exportSpecifierReferencingOuterDeclaration2.ts # We handle this fine, but it doesn't consider the different files together
expressionsForbiddenInParameterInitializers.ts
extendsClauseAlreadySeen.ts
extendsClauseAlreadySeen2.ts
Expand All @@ -120,7 +105,7 @@ indexTypeCheck.ts
indexWithoutParamType.ts
indexerSignatureWithRestParam.ts
interfaceMayNotBeExtendedWitACall.ts
interfaceNaming1.ts
interfaceNaming1.ts # We correctly identify this error, but we can't bring it in without bringing a bunch of other tests too.
interfaceWithImplements1.ts
jsxAttributeMissingInitializer.tsx
jsxAttributeWithoutExpressionReact.tsx
Expand Down Expand Up @@ -151,9 +136,9 @@ parameterInitializerBeforeDestructuringEmit.ts
parameterPropertyOutsideConstructor.ts
parserConstructorDeclaration12.ts
reExportGlobalDeclaration1.ts
reExportGlobalDeclaration2.ts
reExportGlobalDeclaration3.ts
reExportGlobalDeclaration4.ts
reExportGlobalDeclaration2.ts # We handle this fine, but it doesn't consider the different files together
reExportGlobalDeclaration3.ts # We handle this fine, but it doesn't consider the different files together
reExportGlobalDeclaration4.ts # We handle this fine, but it doesn't consider the different files together
reExportUndefined1.ts
readonlyInNonPropertyParameters.ts
redeclareParameterInCatchBlock.ts
Expand Down

0 comments on commit 57d2b47

Please sign in to comment.