Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Maybe tweak %WrapForValidAsyncIteratorPrototype%.return along the lines of #197 #200

@bakkot

Description

@bakkot

Ideally %WrapForValidAsyncIteratorPrototype%.return and %WrapForValidAsyncIteratorPrototype%.next should match as closely as possible. Right now, because of how AsyncIteratorClose is factored, %WrapForValidAsyncIteratorPrototype%.return can't just do a passthrough of the promise from the underlying iterator's .return (because its resulted is Await'd by AsyncIteratorClose). We should maybe not use AsyncIteratorClose and instead directly implement the logic so that we can pass through the promise directly, as we did in #197.

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