summaryrefslogtreecommitdiff
path: root/extensions/web/02_event.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-06-25 16:19:18 +0900
committerGitHub <noreply@github.com>2021-06-25 16:19:18 +0900
commitd832d2bfd1f0487181f96bdecd7a28968a150fac (patch)
treeb4e40fa8689bf97434470cfce9f303f8ddeacf9a /extensions/web/02_event.js
parent606611708c4351e9f5e0e3b975f9331d95168efb (diff)
chore(ext/console): deprecate Deno.customInspect (#10035)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'extensions/web/02_event.js')
-rw-r--r--extensions/web/02_event.js12
1 files changed, 6 insertions, 6 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",