mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(webstorage): use primordial for Symbol.for (#11276)
This commit is contained in:
parent
ffd28e7d67
commit
a80e34f92c
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
const webidl = window.__bootstrap.webidl;
|
const webidl = window.__bootstrap.webidl;
|
||||||
const {
|
const {
|
||||||
Symbol,
|
Symbol,
|
||||||
|
SymbolFor,
|
||||||
ObjectDefineProperty,
|
ObjectDefineProperty,
|
||||||
ObjectFromEntries,
|
ObjectFromEntries,
|
||||||
ObjectEntries,
|
ObjectEntries,
|
||||||
|
@ -157,7 +158,7 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
proxy[Symbol.for("Deno.customInspect")] = function (inspect) {
|
proxy[SymbolFor("Deno.customInspect")] = function (inspect) {
|
||||||
return `${this.constructor.name} ${
|
return `${this.constructor.name} ${
|
||||||
inspect({
|
inspect({
|
||||||
length: this.length,
|
length: this.length,
|
||||||
|
|
Loading…
Add table
Reference in a new issue