From 08d3f1711011d7c3996c7c9b48210bf6e3e027f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 23 Sep 2024 13:18:07 +0100 Subject: feat: make 'globalThis.location' a configurable property (#25812) This commit changes `globalThis.location` property to be configurable so that packages wanting to override it (or delete it) work properly. Towards https://github.com/denoland/deno/issues/23882 This change makes reproduction from https://github.com/denoland/deno/issues/23882#issuecomment-2340783437 pass properly. --- runtime/js/99_main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 8f53cffc4..9134ac48a 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -654,6 +654,7 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { if (location_ == null) { mainRuntimeGlobalProperties.location = { writable: true, + configurable: true, }; } else { location.setLocationHref(location_); -- cgit v1.2.3