Skip to content

Await expression can not be a class heritage #12

@JLHwung

Description

@JLHwung
async function f() {   class x extends await y { }   }

Per spec: https://tc39.es/ecma262/#prod-ClassHeritage ClassHeritage should be a LeftHandSideExpression. If I am reading correctly, AwaitExpression is not a LeftHandSideExpression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions