summaryrefslogtreecommitdiff
path: root/ext/webstorage/01_webstorage.js
diff options
context:
space:
mode:
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)
}`;
};