tc39 / proposal-extractors

Extractors for ECMAScript
http://tc39.es/proposal-extractors/
MIT License
200 stars 3 forks source link

Support elision in extractor expression cover grammar #29

Open rbuckton opened 3 months ago

rbuckton commented 3 months ago

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

Fixes #23

github-actions[bot] commented 3 months ago

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

Jack-Works commented 3 months ago

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

rbuckton commented 3 months ago

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