- 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
What is the expected behavior?
(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?
@nodejs/url