Closed
Description
- Version: master
- Platform: any
- Subsystem: url
What is the expected behavior?
> new (class extends URL { get hostname() { return 'twitter.com'; } })('http://google.com').href
'http://google.com/'
(I mean, I’m not 100 % sure, but this is what Firefox and Chromium return, and it’s what I would expect as well)
What do you see instead?
> new (class extends URL { get hostname() { return 'twitter.com'; } })('http://google.com').href
'http://twitter.com/'
@nodejs/url