Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Don't fallback to Symbol.iterator in async iteration statement #12

Closed
@zenparsing

Description

@zenparsing

Looking over this again, the behavior where we fallback to using Symbol.iterator if the iteration subject does not have Symbol.asyncIterator feels hacky.

I think it should only look for Symbol.asyncIterator. If we want to, we can add async iteration support to regular iterators by adding a method to `%IteratorPrototype%.

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