Skip to content

Grammar ambiguity in for ( async of #2034

Closed
@bakkot

Description

@bakkot

The token sequence for ( async of can begin two different parses: either for (async of => {};;); or for (async of foo);.

@waldemarhorwat raised this issue at the December 2019 meeting. During that discussion we decided to resolve this by using a lookahead restriction to disallow for-of loops which start with the token async.

Metadata

Metadata

Assignees

No one assigned

    Labels

    has consensusThis has committee consensus.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions