Skip to content

Shouldn't ComputedPropertyName use Expression and not AssignmentExpression? #2581

Open
@dead-claudia

Description

@dead-claudia

I suspect this is a spec oversight, hence why I'm filing this as a bug.

One of those is not like the others, and it's generated some confusion over in the ES Discourse. Considering you can't even destructure anything at that location in parameters, it feels like a spec oversight in ES2015 that's been there ever since.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions