diff options
-rw-r--r-- | lib/internal/url.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js index f6cf353233..518c745b41 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -458,7 +458,7 @@ Object.defineProperties(URL.prototype, { if (ctx.path.length > 0) { try { return (new URL(ctx.path[0])).origin; - } catch (err) { + } catch { // fall through... do nothing } } |