👷♂️ Patch fixes
- Binds getters and setters on all Window classes (not only
GlobalWindow
), so that they will be available when callingObject.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')
orObject.defineProperty(window, 'property')