diff options
author | Mark Tiedemann <www.marktiedemann@gmail.com> | 2018-04-27 19:21:38 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-04-27 20:09:19 +0200 |
commit | 6c6f31392c37d9e7ad6e2587514e19d8c5d344ee (patch) | |
tree | d8bb4459c66d42c40db83d419975438f734460fe /doc | |
parent | a1fc52884b98acab3d3f0b66c3b5ac9eb0728b8b (diff) | |
download | android-node-v8-6c6f31392c37d9e7ad6e2587514e19d8c5d344ee.tar.gz android-node-v8-6c6f31392c37d9e7ad6e2587514e19d8c5d344ee.tar.bz2 android-node-v8-6c6f31392c37d9e7ad6e2587514e19d8c5d344ee.zip |
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: https://github.com/nodejs/node/pull/20364
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/url.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/api/url.md b/doc/api/url.md index 35a72da8ee..3740dd7901 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -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/ |