Skip to content

bug: URLSearchParams(null) behavior deviates from WHATWG standard / browsers #63559

@tbontb-iaq

Description

@tbontb-iaq

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?

'null='

What do you see instead?

''

Additional information

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions