Skip to content

The wrong output type of the old bug: new URL #2006

@vamsaya

Description

@vamsaya

What version of Bun is running?

0.5.5 And earlier versions

What platform is your computer?

windows11 wsl2 debian

What steps can reproduce the bug?

// Wrong result:    https://www.example.com/foo=bar
console.log(new URL("https://www.example.com/foo=bar"));

What is the expected behavior?

Should be a URL object, not a string

Snipaste_2023-02-07_18-22-59

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions