fix(ext/webstorage): make web storages re-assignable (#16661)

This commit is contained in:
Yoshiya Hinosawa 2022-11-17 02:12:58 +09:00 committed by GitHub
parent 38542e849d
commit 1d85c25205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -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),
};