From 1cc861c0aa658974f7e3769625bd166a6407dbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gautier=20Ben=20A=C3=AFm?= <48261497+GauBen@users.noreply.github.com> Date: Sat, 15 Jan 2022 16:08:14 +0100 Subject: [PATCH] [fix] make properties overwritable (#3356) --- packages/kit/src/install-fetch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/kit/src/install-fetch.js b/packages/kit/src/install-fetch.js index 629e38884996..aee7971d76c5 100644 --- a/packages/kit/src/install-fetch.js +++ b/packages/kit/src/install-fetch.js @@ -5,18 +5,22 @@ export function __fetch_polyfill() { Object.defineProperties(globalThis, { fetch: { enumerable: true, + configurable: true, value: fetch }, Response: { enumerable: true, + configurable: true, value: Response }, Request: { enumerable: true, + configurable: true, value: Request }, Headers: { enumerable: true, + configurable: true, value: Headers } });