Skip to content

url: fix URLPattern USVString coercion - #64786

Open
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:url5
Open

url: fix URLPattern USVString coercion#64786
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:url5

Conversation

@Archkon

@Archkon Archkon commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64785

@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 force-pushed the url5 branch 3 times, most recently from faaedd7 to 2ec6cde Compare July 27, 2026 16:57
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.14%. Comparing base (6a3d80f) to head (58d0737).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/node_url_pattern.cc 96.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64786      +/-   ##
==========================================
- Coverage   90.16%   90.14%   -0.02%     
==========================================
  Files         744      744              
  Lines      242518   242489      -29     
  Branches    45705    45679      -26     
==========================================
- Hits       218670   218603      -67     
- Misses      15357    15398      +41     
+ Partials     8491     8488       -3     
Files with missing lines Coverage Δ
src/node_url_pattern.cc 84.03% <96.66%> (+0.08%) ⬆️

... and 31 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.

Apply WebIDL USVString conversion after resolving URLPattern overloads
and union branches.

Coerce primitive URLPatternInput values through the string branch and
coerce baseURL values in the constructor, exec(), and test(). Keep
objects on the URLPatternInit or options dictionary branches where
required, and propagate conversion exceptions unchanged.

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 rejects values requiring WebIDL USVString conversion for input and baseURL

2 participants