Skip to content

Disposers are not run for modules with top-level await #4039

Open

Description

@bakkot

When [[HasTLA]] is true, ExecuteModule just performs AsyncBlockStart, which does not do DisposeResources; nor does anything else.

Extracted from #4007, thanks to @JinDX for reporting.

cc @rbuckton.

Activity

  1. changed the title [-]Async disposers are not run for modules with top-level await[/-] [+]Disposers are not run for modules with top-level await[/+] on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions