summaryrefslogtreecommitdiff
path: root/ext/webstorage/01_webstorage.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-11-19 17:13:38 +0900
committerGitHub <noreply@github.com>2023-11-19 09:13:38 +0100
commitc806fbdabe144c865612bbbc9ef596c9611c8310 (patch)
treeedb38d58720377580677ccbeffb693ffa1225cc4 /ext/webstorage/01_webstorage.js
parenta7548afb58b9848e501a085455446f5de897ffaa (diff)
fix(ext,runtime): add missing custom inspections (#21219)
Diffstat (limited to 'ext/webstorage/01_webstorage.js')
-rw-r--r--ext/webstorage/01_webstorage.js9
1 files changed, 6 insertions, 3 deletions
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)
}`;
};