Skip to content

Conversation

@kimtaejin3
Copy link
Contributor

The Location interface should not have a searchParams property according to the WHATWG URL spec. This commit fixes the WPT test runner to hide the searchParams property from the location object using a Proxy, ensuring that WPT tests expecting the Location interface behavior pass correctly.

  • Use Proxy to hide searchParams from location object in WPT runner
  • Remove historical.any.js from expected failures in url.json

Fixes the 'searchParams on location object' test in historical.any.js

The Location interface should not have a searchParams property according
to the WHATWG URL spec. This commit fixes the WPT test runner to hide
the searchParams property from the location object using a Proxy, ensuring
that WPT tests expecting the Location interface behavior pass correctly.

- Use Proxy to hide searchParams from location object in WPT runner
- Remove historical.any.js from expected failures in url.json

Fixes the 'searchParams on location object' test in historical.any.js
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/web-standards

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jan 23, 2026
@panva
Copy link
Member

panva commented Jan 23, 2026

I don't believe this to be necessary, fixing a test stub for the purpose of having the stub's wpt pass isn't helping the runtime.

@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.82%. Comparing base (eac00fa) to head (adc3368).
⚠️ Report is 108 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61490      +/-   ##
==========================================
+ Coverage   87.99%   89.82%   +1.82%     
==========================================
  Files         704      667      -37     
  Lines      208739   203693    -5046     
  Branches    40184    39151    -1033     
==========================================
- Hits       183679   182962     -717     
+ Misses      17006    13064    -3942     
+ Partials     8054     7667     -387     

see 209 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

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants