diff options
Diffstat (limited to 'op_crates/web/11_url.js')
-rw-r--r-- | op_crates/web/11_url.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/op_crates/web/11_url.js b/op_crates/web/11_url.js index d5474727b..eac679549 100644 --- a/op_crates/web/11_url.js +++ b/op_crates/web/11_url.js @@ -522,7 +522,7 @@ class URL { #searchParams = null; - [Symbol.for("Deno.customInspect")]() { + [Symbol.for("Deno.customInspect")](inspect) { const object = { href: this.href, origin: this.origin, @@ -536,12 +536,7 @@ hash: this.hash, search: this.search, }; - if (typeof globalThis?.Deno?.inspect == "function") { - return `URL ${Deno.inspect(object)}`; - } - return `URL { ${ - Object.entries(object).map(([k, v]) => `${k}: ${v}`).join(", ") - } }`; + return `${this.constructor.name} ${inspect(object)}`; } #updateSearchParams = () => { |