Skip to content

clarify what are the "circumstances" for refining the interpretation of LeftHandSideExpression #3323

Open
@ltcmelo

Description

@ltcmelo

In 13.15.5 Destructuring Assignment, we have:

"In certain circumstances when processing an instance of the production AssignmentExpression : LeftHandSideExpression = AssignmentExpression the interpretation of LeftHandSideExpression is refined using the following grammar: ..."

But I couldn't find where these circumstances are explained. Have I missed it?

If my understand is correct, then in a context like the one below, the refinement should apply:

let o = { x: "s", y: 0 };
({x: v, y: w} = o);

In one case or another, the spec should clarify — if isn't yet doing so — what the circumstances in question are; if this is already clarified and I've missed it, it might be worth to link the clarification in section 13.15.5.

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