You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
👷♂️ Patch fixes
Binds getters and setters on all Window classes (not only GlobalWindow), so that they will be available when calling Object.getOwnPropertyDescriptors() - By @capricorn86 in task #1343
The reason for this change is that JSDOM and browsers has these properties as part of the Window instance and not the prototype
Happy DOM will now behave correctly when overriding a property on Window with spyOn(window, 'property') or Object.defineProperty(window, 'property')