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

Merged
merged 1 commit into from
Jan 16, 2025

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.

Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFM

@ljharb ljharb force-pushed the make-match-indicies branch from 5e03a5a to 72c1a4e Compare January 9, 2025 00:27
@michaelficarra michaelficarra added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jan 15, 2025
ljharb pushed a commit to kimjg1119/ecma262 that referenced this pull request Jan 16, 2025
@ljharb ljharb force-pushed the make-match-indicies branch from 72c1a4e to ecef763 Compare January 16, 2025 06:08
@ljharb ljharb force-pushed the make-match-indicies branch from ecef763 to 1f6ac07 Compare January 16, 2025 07:20
@ljharb ljharb merged commit 1f6ac07 into tc39:main Jan 16, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants