Skip to content

Commit

Permalink
doc: remove superfluous URL require statement
Browse files Browse the repository at this point in the history
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 <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
MarkTiedemann authored and MylesBorins committed May 4, 2018
1 parent d9bc921 commit 701f536
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ and a `base` is provided, it is advised to validate that the `origin` of
the `URL` object is what is expected.

```js
const { URL } = require('url');

let myURL = new URL('http://anotherExample.org/', 'https://example.org/');
// http://anotherexample.org/

Expand Down

0 comments on commit 701f536

Please sign in to comment.