mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/webstorage): make web storages re-assignable (#16661)
This commit is contained in:
parent
38542e849d
commit
1d85c25205
2 changed files with 17 additions and 0 deletions
|
@ -587,11 +587,15 @@ delete Intl.v8BreakIterator;
|
|||
configurable: true,
|
||||
enumerable: true,
|
||||
get: webStorage.localStorage,
|
||||
// Makes this reassignable to make astro work
|
||||
set: () => {},
|
||||
},
|
||||
sessionStorage: {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
get: webStorage.sessionStorage,
|
||||
// Makes this reassignable to make astro work
|
||||
set: () => {},
|
||||
},
|
||||
Storage: util.nonEnumerable(webStorage.Storage),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue