diff --git a/lib/internal/url.js b/lib/internal/url.js index 1f84e05e1d6142..40b25f6890b5db 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -748,13 +748,13 @@ class URL { toString() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } get href() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } set href(input) { @@ -1011,7 +1011,7 @@ class URL { toJSON() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } static createObjectURL(obj) {