Skip to content

Commit 707b5c9

Browse files
committed
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.
1 parent a1fc528 commit 707b5c9

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)