Skip to content

URLSearchParams.prototype.{ has, delete } second argument support #9263

@zloirock

Description

@zloirock

What version of Bun is running?

1.0.30

What platform is your computer?

mac

What steps can reproduce the bug?

const params = new URLSearchParams('a=1&a=2&b=3');
params.delete('a', 1);
params.delete('b', undefined);
params + ''; // => '', should be 'a=2';

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

It's supported in all browsers, Node, Deno, etc more than a year.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingweb-apiSomething that relates to a standard Web API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions