1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

fix(webstorage): use primordial for Symbol.for (#11276)

This commit is contained in:
Divy Srivastava 2021-07-05 13:54:21 +05:30 committed by GitHub
parent ffd28e7d67
commit a80e34f92c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
const webidl = window.__bootstrap.webidl;
const {
Symbol,
SymbolFor,
ObjectDefineProperty,
ObjectFromEntries,
ObjectEntries,
@ -157,7 +158,7 @@
},
});
proxy[Symbol.for("Deno.customInspect")] = function (inspect) {
proxy[SymbolFor("Deno.customInspect")] = function (inspect) {
return `${this.constructor.name} ${
inspect({
length: this.length,