Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae34900

Browse filesBrowse files
Trottruyadorno
authored andcommitted
doc: clarify treatment of non-string base in URL()
PR-URL: #41685 Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent b83e661 commit ae34900
Copy full SHA for ae34900

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/url.md‎

Copy file name to clipboardExpand all lines: doc/api/url.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.