From 6c6f31392c37d9e7ad6e2587514e19d8c5d344ee Mon Sep 17 00:00:00 2001 From: Mark Tiedemann Date: Fri, 27 Apr 2018 19:21:38 +0200 Subject: [PATCH] doc: remove superfluous URL require statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Michaƫl Zasso Reviewed-By: Vse Mozhet Byt --- doc/api/url.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/api/url.md b/doc/api/url.md index 35a72da8ee681f..3740dd79011365 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/