tc39 / proposal-extractors

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

Add NLT to ExtractorBindingPattern and ExtractorMemberExpression #25

Open rbuckton opened 3 months ago

rbuckton commented 3 months ago

This adds a [no |LineTerminator| here] assertion to ExtractorBindingPattern and to ExtractorMemberExpression and introduces a new [Assertion] production parameter to ExtractorMemberExpression to align with Option (1) as discussed in #24:

  1. Introduce an NLT in ExtractorBindingPattern but not ExtractorAssignmentPattern.

This is an alternative solution to the one implemented in #27.

The outcome of this change is as follows:

Fixes #24 Related #27

github-actions[bot] commented 3 months ago

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