Version
v24.16.0
Platform
Linux nixos 7.0.9 #1-NixOS SMP PREEMPT_DYNAMIC Sun May 17 15:16:34 UTC 2026 x86_64 GNU/Linux
Subsystem
URLSearchParams
What steps will reproduce the bug?
(new URLSearchParams(null)).toString()
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
When passing null to URLSearchParams constructor, Node.js deviates from the WHATWG URL and WebIDL specification, as well as the behavior in Chrome and Deno.
Version
v24.16.0
Platform
Subsystem
URLSearchParams
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
'null='What do you see instead?
''Additional information
When passing null to URLSearchParams constructor, Node.js deviates from the WHATWG URL and WebIDL specification, as well as the behavior in Chrome and Deno.