-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.
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
domenic, juanarbol and watildewatilde, darvesh, RaisinTen, Lxxyx, juanarbol and 2 more
Metadata
Metadata
Assignees
Labels
whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.