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

Normative: Disallow nested destructuring assignment with rest properties #51

Merged

Conversation

littledan
Copy link
Member

Follow-up for #43

The previous patch only disabled destructuring binding (e.g., let {x, ...{y}} = z); this patch disables destructuring assignment as well (e.g., {x, ...{y}} = z). Thanks to @gsathya for implementing the initial proposal in V8, which made the mismatch clear, and @ajklein for raising this issue previously. cc @caiolima @saambarati @anba

@littledan
Copy link
Member Author

Ping, any thoughts here? Is this change unnecessary?

@gsathya
Copy link
Member

gsathya commented Jul 14, 2017

lgtm

@saambarati
Copy link

All this is doing is extending the same rules for both assignments and declarations? If so, LGTM too

@caiolima
Copy link

caiolima commented Aug 1, 2017

This LGTM as well. BTW, that is what I understand from the previous discussion.

@gsathya
Copy link
Member

gsathya commented Aug 8, 2017

@sebmarkbage Can you merge this? Chrome 61 is shipping with this behavior and I'd feel a lot better if this behavior was part of the spec.

@sebmarkbage sebmarkbage merged commit 72deb7d into tc39:master Aug 8, 2017
adrianheine added a commit to adrianheine/acorn5-object-spread that referenced this pull request Nov 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants