Skip to content

Commit 701f536

Browse files
MarkTiedemannMylesBorins
authored andcommitted
doc: remove superfluous URL require statement
Since v10.0.0, the `URL` class is available on the global object, so using a `require` statement to access it is no longer necessary. PR-URL: #20364 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent d9bc921 commit 701f536

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

doc/api/url.md

-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ and a `base` is provided, it is advised to validate that the `origin` of
132132
the `URL` object is what is expected.
133133

134134
```js
135-
const { URL } = require('url');
136-
137135
let myURL = new URL('http://anotherExample.org/', 'https://example.org/');
138136
// http://anotherexample.org/
139137

0 commit comments

Comments
 (0)