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

Normative: specify creation order for capturing group properties #2329

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Feb 27, 2021

The order in which the non-numeric properties are created (i.e. those from named capturing groups) is observable with Object.keys.

This matches all the engines I have on hand. It's only very technically normative, and test262 already tests for this behavior (x, x). Thanks to @jmdyck for pointing this out and linking the tests.

@ljharb ljharb added needs consensus This needs committee consensus before it can be eligible to be merged. needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 normative change Affects behavior required to correctly evaluate some ECMAScript source text has test262 tests web reality and removed needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 labels Feb 27, 2021
@ljharb ljharb requested review from michaelficarra, syg and a team February 27, 2021 20:56
@ljharb ljharb added has consensus This has committee consensus. and removed needs consensus This needs committee consensus before it can be eligible to be merged. labels Mar 9, 2021
@bakkot
Copy link
Contributor Author

bakkot commented Mar 10, 2021

This got consensus today. As there's already tests exercising it, and it matches all shipping implementations, I believe it can be merged.

@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Mar 10, 2021
@ljharb ljharb force-pushed the regexp-prop-order branch from e17cc8a to 750b51c Compare March 10, 2021 03:27
@ljharb ljharb merged commit 750b51c into master Mar 10, 2021
@ljharb ljharb deleted the regexp-prop-order branch March 10, 2021 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has consensus This has committee consensus. has test262 tests normative change Affects behavior required to correctly evaluate some ECMAScript source text ready to merge Editors believe this PR needs no further reviews, and is ready to land. web reality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants