From 770085130fceb3291cae4f94dc5b593206554d77 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Wed, 24 Jul 2019 13:23:41 -0700 Subject: [PATCH] misc: add note about global.URL in node 10 --- lighthouse-core/lib/url-shim.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lighthouse-core/lib/url-shim.js b/lighthouse-core/lib/url-shim.js index cb8d2333959b..e3bdbaa6de2d 100644 --- a/lighthouse-core/lib/url-shim.js +++ b/lighthouse-core/lib/url-shim.js @@ -32,6 +32,7 @@ function rewriteChromeInternalUrl(url) { return url.replace(/^chrome:\/\/chrome\//, 'chrome://'); } +// URL is global as of node 10. https://nodejs.org/api/globals.html#globals_url class URLShim extends URL { /** * @param {string} url