From 1d85c2520575ae3a10c21b6559c58127e0bd489a Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 17 Nov 2022 02:12:58 +0900 Subject: fix(ext/webstorage): make web storages re-assignable (#16661) --- runtime/js/99_main.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/js') 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), }; -- cgit v1.2.3