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

Editorial: Allocate-and-use in MakeMatchIndicesIndexPairArray for refinement #3495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kimjg1119
Copy link
Contributor

In step 9.e of MakeMatchIndicesIndexPairArray:

e. If i > 0 and groupNames[i - 1] is not undefined, then …

groupNames[i - 1] is refined to a non-undefined value. However, the current implementation of ESMeta does not support field-level refinement. To remove unsatisfactory alarms, it would helpful to first assign the value to a temporary variable before we support the feature.

c.f. Alternatively, this could be achieved by adding an identical assertion below step 9.e.ii. I'm not sure this is a better way though.

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.

1 participant