Skip to content

url: preserve property order in URLPattern results #64735

Draft
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:url3
Draft

url: preserve property order in URLPattern results #64735
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:url3

Conversation

@Archkon

@Archkon Archkon commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64734

Reorder the URLPatternResult and URLPatternComponentResult dictionary
templates, together with their value arrays, to follow the
lexicographical member order required by WebIDL.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Jul 25, 2026
@Archkon
Archkon marked this pull request as draft July 25, 2026 10:38
@Archkon Archkon changed the title Url3 url: preserve property order in URLPattern results Jul 25, 2026
Use each compiled component's group name list when materializing
URLPattern capture groups instead of iterating an unordered map.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

url: URLPattern.exec() does not preserve capture group declaration order

2 participants