summaryrefslogtreecommitdiff
path: root/cli/rt/40_performance.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-17 18:42:36 +0200
committerGitHub <noreply@github.com>2020-09-17 18:42:36 +0200
commitc307e3e4be4e02de86103cd48d28f5ba3b18628d (patch)
treea6c830606fabcd1a08d81ed66ac882a5691f52a2 /cli/rt/40_performance.js
parentbda937938550a0969588a6878d2fb6d72c17b22d (diff)
refactor: use Symbol.for instead of Symbol in cli/rt/ (#7537)
Diffstat (limited to 'cli/rt/40_performance.js')
-rw-r--r--cli/rt/40_performance.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/rt/40_performance.js b/cli/rt/40_performance.js
index 768c43a6a..a785d23b1 100644
--- a/cli/rt/40_performance.js
+++ b/cli/rt/40_performance.js
@@ -2,9 +2,9 @@
((window) => {
const { opNow } = window.__bootstrap.timers;
- const { customInspect, inspect } = window.__bootstrap.console;
const { cloneValue } = window.__bootstrap.webUtil;
+ const customInspect = Symbol.for("Deno.customInspect");
let performanceEntries = [];
function findMostRecent(
@@ -130,7 +130,7 @@
[customInspect]() {
return this.detail
? `${this.constructor.name} {\n detail: ${
- inspect(this.detail, { depth: 3 })
+ JSON.stringify(this.detail, null, 2)
},\n name: "${this.name}",\n entryType: "${this.entryType}",\n startTime: ${this.startTime},\n duration: ${this.duration}\n}`
: `${this.constructor.name} { detail: ${this.detail}, name: "${this.name}", entryType: "${this.entryType}", startTime: ${this.startTime}, duration: ${this.duration} }`;
}
@@ -170,7 +170,7 @@
[customInspect]() {
return this.detail
? `${this.constructor.name} {\n detail: ${
- inspect(this.detail, { depth: 3 })
+ JSON.stringify(this.detail, null, 2)
},\n name: "${this.name}",\n entryType: "${this.entryType}",\n startTime: ${this.startTime},\n duration: ${this.duration}\n}`
: `${this.constructor.name} { detail: ${this.detail}, name: "${this.name}", entryType: "${this.entryType}", startTime: ${this.startTime}, duration: ${this.duration} }`;
}