diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2022-11-17 02:12:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 02:12:58 +0900 |
commit | 1d85c2520575ae3a10c21b6559c58127e0bd489a (patch) | |
tree | 9936d1d76224cd2ea6ce6a31a80fa5071b5c2724 /runtime/js/99_main.js | |
parent | 38542e849d3d1f3fbb1328b82afa135486ef6c2a (diff) |
fix(ext/webstorage): make web storages re-assignable (#16661)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 9b4a9e857..c7faefcdd 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -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), }; |