summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-11-17 02:12:58 +0900
committerGitHub <noreply@github.com>2022-11-17 02:12:58 +0900
commit1d85c2520575ae3a10c21b6559c58127e0bd489a (patch)
tree9936d1d76224cd2ea6ce6a31a80fa5071b5c2724 /runtime/js
parent38542e849d3d1f3fbb1328b82afa135486ef6c2a (diff)
fix(ext/webstorage): make web storages re-assignable (#16661)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js4
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),
};