From c806fbdabe144c865612bbbc9ef596c9611c8310 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sun, 19 Nov 2023 17:13:38 +0900 Subject: fix(ext,runtime): add missing custom inspections (#21219) --- ext/webstorage/01_webstorage.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ext/webstorage') diff --git a/ext/webstorage/01_webstorage.js b/ext/webstorage/01_webstorage.js index 59abab1bf..4e7c77aa0 100644 --- a/ext/webstorage/01_webstorage.js +++ b/ext/webstorage/01_webstorage.js @@ -147,12 +147,15 @@ function createStorage(persistent) { }, }); - proxy[SymbolFor("Deno.customInspect")] = function (inspect) { + storage[SymbolFor("Deno.privateCustomInspect")] = function ( + inspect, + inspectOptions, + ) { return `${this.constructor.name} ${ inspect({ - length: this.length, ...ObjectFromEntries(ObjectEntries(proxy)), - }) + length: this.length, + }, inspectOptions) }`; }; -- cgit v1.2.3