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

What do you see instead?
No response
Additional information
No response