summaryrefslogtreecommitdiff
path: root/doc/api/url.md
diff options
context:
space:
mode:
authorMark Tiedemann <www.marktiedemann@gmail.com>2018-04-27 19:21:38 +0200
committerAnna Henningsen <anna@addaleax.net>2018-04-27 20:09:19 +0200
commit6c6f31392c37d9e7ad6e2587514e19d8c5d344ee (patch)
treed8bb4459c66d42c40db83d419975438f734460fe /doc/api/url.md
parenta1fc52884b98acab3d3f0b66c3b5ac9eb0728b8b (diff)
downloadandroid-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/api/url.md')
-rw-r--r--doc/api/url.md2
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/