GeezerVison is showing github.com — doc: clarify treatment of non-string base in URL() · nodejs/node@018ec32
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -132,8 +132,8 @@ return `true`. |
132 | 132 | * `input` {string} The absolute or relative input URL to parse. If `input` |
133 | 133 | is relative, then `base` is required. If `input` is absolute, the `base` |
134 | 134 | 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. |
137 | 137 |
|
138 | 138 | Creates a new `URL` object by parsing the `input` relative to the `base`. If |
139 | 139 | `base` is passed as a string, it will be parsed equivalent to `new URL(base)`. |
|