diff --git a/lib/internal/url.js b/lib/internal/url.js index 2afd2db9b72f16..2bad698883631e 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 } }