Skip to content

Debug assert in getAwaitedTypeNoAlias in test262 repo #53145

Closed

Description

/home/jabaile/work/TypeScript/src/compiler/program.ts:2734
            throw e;
            ^


Error: Debug Failure.
    at getAwaitedTypeNoAlias (/home/jabaile/work/TypeScript/src/compiler/checker.ts:39373:23)
    at Object.getAwaitedType (/home/jabaile/work/TypeScript/src/compiler/checker.ts:39252:29)
    at getIterationTypesOfMethod (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41892:51)
    at getIterationTypesOfIteratorSlow (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41927:13)
    at getIterationTypesOfIteratorWorker (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41683:28)
    at getIterationTypesOfIterableSlow (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41628:32)
    at getIterationTypesOfIterableWorker (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41521:36)
    at getIterationTypesOfIterable (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41396:36)
    at getIteratedTypeOrElementType (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41167:36)
    at checkIteratedTypeOrElementType (/home/jabaile/work/TypeScript/src/compiler/checker.ts:41143:16)

Node.js v19.7.0

Using https://github.com/microsoft/typescript-error-deltas/blob/main/userTests/test262/tsconfig.json placed into the https://github.com/tc39/test262 repo. Narrowing it down to the file that's bad:

    "files": [
        "test/language/expressions/async-generator/named-yield-star-async-next.js"
    ]

Here: https://github.com/tc39/test262/blob/main/test/language/expressions/async-generator/named-yield-star-async-next.js

Activity

  1. jakebailey commented on Mar 7, 2023

    @jakebailey
    MemberAuthor

    It's not the only file, though. Excluding "**/*yield*.js" finally gets it to run.

  2. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions