Skip to content

Commit ae34900

Browse files
Trottruyadorno
authored andcommitted
doc: clarify treatment of non-string base in URL()
PR-URL: #41685 Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent b83e661 commit ae34900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/url.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ return `true`.
132132
* `input` {string} The absolute or relative input URL to parse. If `input`
133133
is relative, then `base` is required. If `input` is absolute, the `base`
134134
is ignored. If `input` is not a string, it is [converted to a string][] first.
135-
* `base` {string|URL} The base URL to resolve against if the `input` is not
136-
absolute.
135+
* `base` {string} The base URL to resolve against if the `input` is not
136+
absolute. If `base` is not a string, it is [converted to a string][] first.
137137

138138
Creates a new `URL` object by parsing the `input` relative to the `base`. If
139139
`base` is passed as a string, it will be parsed equivalent to `new URL(base)`.

0 commit comments

Comments
 (0)