Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
2.2 KiB
Diff
Raw Permalink Normal View History

2026-02-11 10:35:29 +00:00
diff --git a/lib/jsdom/browser/Window.js b/lib/jsdom/browser/Window.js
2025-11-13 10:50:33 +00:00
index 52d011c..f62f6d6 100644
2026-02-11 10:35:29 +00:00
--- a/lib/jsdom/browser/Window.js
+++ b/lib/jsdom/browser/Window.js
2025-11-13 10:50:33 +00:00
@@ -505,10 +505,10 @@ function installOwnProperties(window, options) {
event: makeReplaceablePropertyDescriptor("event", window),
2026-02-11 10:35:29 +00:00
2025-11-13 10:50:33 +00:00
// [LegacyUnforgeable]:
- window: { configurable: false },
- document: { configurable: false },
- location: { configurable: false },
- top: { configurable: false }
+ window: { configurable: true },
+ document: { configurable: true },
+ location: { configurable: true },
+ top: { configurable: true }
});
2026-02-11 10:35:29 +00:00
diff --git a/lib/jsdom/living/generated/Location.js b/lib/jsdom/living/generated/Location.js
2025-11-13 10:50:33 +00:00
index fc4d1dd..c855bd5 100644
2026-02-11 10:35:29 +00:00
--- a/lib/jsdom/living/generated/Location.js
+++ b/lib/jsdom/living/generated/Location.js
2025-11-13 10:50:33 +00:00
@@ -322,19 +322,19 @@ function getUnforgeables(globalObject) {
}
});
Object.defineProperties(unforgeables, {
- assign: { configurable: false, writable: false },
- replace: { configurable: false, writable: false },
- reload: { configurable: false, writable: false },
- href: { configurable: false },
- toString: { configurable: false, writable: false },
- origin: { configurable: false },
- protocol: { configurable: false },
- host: { configurable: false },
- hostname: { configurable: false },
- port: { configurable: false },
- pathname: { configurable: false },
- search: { configurable: false },
- hash: { configurable: false }
+ assign: { configurable: true, writable: false },
+ replace: { configurable: true, writable: false },
+ reload: { configurable: true, writable: false },
+ href: { configurable: true },
+ toString: { configurable: true, writable: false },
+ origin: { configurable: true },
+ protocol: { configurable: true },
+ host: { configurable: true },
+ hostname: { configurable: true },
+ port: { configurable: true },
+ pathname: { configurable: true },
+ search: { configurable: true },
+ hash: { configurable: true }
});
unforgeablesMap.set(globalObject, unforgeables);
}