summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-23 13:18:07 +0100
committerGitHub <noreply@github.com>2024-09-23 14:18:07 +0200
commit08d3f1711011d7c3996c7c9b48210bf6e3e027f7 (patch)
tree55789c5fc2ef80c98041245ae7e1c872da8e915c /runtime
parent8f32a1577ec00d239bce39dd1f526b5678041b8b (diff)
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/js/99_main.js1
1 files changed, 1 insertions, 0 deletions
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_);