👷♂️ Patch fixes
- Fixes problem with properties defined as getters and setters not being registered globally by Vitest - By @capricorn86 in task #1339
- The problem occurred as Vitest is using
Object.getOwnPropertyDescriptors(window)
to read which properties to register globally, but getters and setters are defined on the prototype - To solve the problem,
GlobalWindow
now defines the properties on the instance when it is constructed
- The problem occurred as Vitest is using