diff options
Diffstat (limited to 'cli/rt/40_performance.js')
-rw-r--r-- | cli/rt/40_performance.js | 6 |
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} }`; } |