Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support elision in extractor expression cover grammar #29

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

rbuckton
Copy link
Collaborator

This changes the grammar to use a cover for Arguments that includes the Elision elements necessary to support ExtractorAssignmentPattern.

Fixes #23

@rbuckton rbuckton requested a review from waldemarhorwat May 28, 2024 22:31
Copy link

A preview of this PR can be found at https://tc39.es/proposal-extractors/pr/29.

@Jack-Works
Copy link
Member

is this a user-aware syntax change or is it just make things technically correct?

@rbuckton
Copy link
Collaborator Author

This fixes the cover grammar to match the ExtractorAssignmentPattern grammar so that F(, x) = y parses as intended.

@rbuckton
Copy link
Collaborator Author

rbuckton commented Sep 6, 2024

@waldemarhorwat does this sufficiently cover your concern about Elision missing from the cover grammar from #23? I've opted for option 2 in #23 (comment) for the time being, and can revise based on the outcome of the discards proposal.

@rbuckton
Copy link
Collaborator Author

FYI, unless anyone has comments on this PR, I plan to merge it later this evening.

@rbuckton rbuckton merged commit fb6be1c into main Sep 27, 2024
1 check passed
@rbuckton rbuckton deleted the cover-elision branch September 27, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExtractorAssignmentPattern elisions
2 participants