Skip to content

url: add Symbol.toStringTag to URLPattern - #65925

Open
XadillaX wants to merge 1 commit into
nodejs:mainfrom
XadillaX:fix-urlpattern-tostringtag
Open

url: add Symbol.toStringTag to URLPattern#65925
XadillaX wants to merge 1 commit into
nodejs:mainfrom
XadillaX:fix-urlpattern-tostringtag

Conversation

@XadillaX

@XadillaX XadillaX commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Define Symbol.toStringTag on URLPattern.prototype so that the class string matches the Web IDL interface name. Add regression coverage for the property descriptor and Object.prototype.toString() result.

Fixes: #65924

Define Symbol.toStringTag on URLPattern.prototype so its class string
matches the Web IDL interface name.

Add coverage for the property descriptor and
Object.prototype.toString().

Fixes: nodejs#65924
Signed-off-by: XadillaX <i@2333.moe>
@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 Sep 9, 2026
@meixg meixg added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 9, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 9, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.18%. Comparing base (cb9b870) to head (01ab95b).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65925      +/-   ##
==========================================
- Coverage   92.40%   90.18%   -2.23%     
==========================================
  Files         417      771     +354     
  Lines      188989   265447   +76458     
  Branches    28924    50444   +21520     
==========================================
+ Hits       174642   239381   +64739     
- Misses      14015    17021    +3006     
- Partials      332     9045    +8713     
Files with missing lines Coverage Δ
src/node_url_pattern.cc 83.72% <100.00%> (ø)

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

@panva panva added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. 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.

Symbol.toStringTag on URLPattern

5 participants