diff options
Diffstat (limited to 'extensions/web')
-rw-r--r-- | extensions/web/02_event.js | 12 | ||||
-rw-r--r-- | extensions/web/06_streams.js | 8 | ||||
-rw-r--r-- | extensions/web/12_location.js | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/extensions/web/02_event.js b/extensions/web/02_event.js index 7a270881f..081869efd 100644 --- a/extensions/web/02_event.js +++ b/extensions/web/02_event.js @@ -143,7 +143,7 @@ }); } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, EVENT_PROPS)); } @@ -1055,7 +1055,7 @@ return "ErrorEvent"; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, [ ...EVENT_PROPS, "message", @@ -1109,7 +1109,7 @@ this.#reason = reason; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, [ ...EVENT_PROPS, "wasClean", @@ -1137,7 +1137,7 @@ this.lastEventId = eventInitDict?.lastEventId ?? ""; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, [ ...EVENT_PROPS, "data", @@ -1167,7 +1167,7 @@ return "CustomEvent"; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, [ ...EVENT_PROPS, "detail", @@ -1190,7 +1190,7 @@ this.total = eventInitDict?.total ?? 0; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return inspect(buildFilteredPropertyInspectObject(this, [ ...EVENT_PROPS, "lengthComputable", diff --git a/extensions/web/06_streams.js b/extensions/web/06_streams.js index 127436d43..d26a1a412 100644 --- a/extensions/web/06_streams.js +++ b/extensions/web/06_streams.js @@ -3304,7 +3304,7 @@ return iterator; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return `${this.constructor.name} ${inspect({ locked: this.locked })}`; } @@ -3424,7 +3424,7 @@ return readableStreamReaderGenericCancel(this, reason); } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return `${this.constructor.name} ${inspect({ closed: this.closed })}`; } @@ -3821,7 +3821,7 @@ return this[_writable]; } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return `${this.constructor.name} ${ inspect({ readable: this.readable, writable: this.writable }) }`; @@ -4022,7 +4022,7 @@ return acquireWritableStreamDefaultWriter(this); } - [Symbol.for("Deno.customInspect")](inspect) { + [Symbol.for("Deno.privateCustomInspect")](inspect) { return `${this.constructor.name} ${inspect({ locked: this.locked })}`; } diff --git a/extensions/web/12_location.js b/extensions/web/12_location.js index 2b6580f8b..75012396a 100644 --- a/extensions/web/12_location.js +++ b/extensions/web/12_location.js @@ -165,7 +165,7 @@ }, enumerable: true, }, - [Symbol.for("Deno.customInspect")]: { + [Symbol.for("Deno.privateCustomInspect")]: { value: function (inspect) { const object = { hash: this.hash, @@ -322,7 +322,7 @@ value: "WorkerLocation", configurable: true, }, - [Symbol.for("Deno.customInspect")]: { + [Symbol.for("Deno.privateCustomInspect")]: { value: function (inspect) { const object = { hash: this.hash, |