From d832d2bfd1f0487181f96bdecd7a28968a150fac Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 25 Jun 2021 16:19:18 +0900 Subject: chore(ext/console): deprecate Deno.customInspect (#10035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- extensions/web/02_event.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/web/02_event.js') 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", -- cgit v1.2.3