Skip to content

url: align URLPatternInit with WebIDL - #64781

Open
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:url4
Open

url: align URLPatternInit with WebIDL #64781
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:url4

Conversation

@Archkon

@Archkon Archkon commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64780

Read URLPatternInit dictionary members in lexicographical order so
getters and proxy traps observe the access sequence required by WebIDL.

Signed-off-by: Archkon <[email protected]>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/url

@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 27, 2026
@Archkon
Archkon marked this pull request as draft July 27, 2026 14:28
Use sparse dictionary template values so URLPatternResult inputs only
expose members present after WebIDL conversion. Emit present members in
WebIDL order.

Signed-off-by: Archkon <[email protected]>
@Archkon
Archkon marked this pull request as ready for review July 27, 2026 14:34
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.15%. Comparing base (58795e9) to head (7e619a0).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/node_url_pattern.cc 50.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64781      +/-   ##
==========================================
- Coverage   90.16%   90.15%   -0.01%     
==========================================
  Files         744      744              
  Lines      242518   242509       -9     
  Branches    45692    45702      +10     
==========================================
- Hits       218663   218643      -20     
- Misses      15349    15387      +38     
+ Partials     8506     8479      -27     
Files with missing lines Coverage Δ
src/node_url_pattern.cc 83.37% <50.00%> (-0.35%) ⬇️

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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: URLPatternInit dictionary conversion does not follow WebIDL semantics

2 participants