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
{{ message }}
Repository navigation
Object.freeze(Object.prototype) crashing vitest process #798
We have a module in which we freeze the Object.prototype for security reasons.
We can test this module with the vitest cli. If however we use the vitest extension the process crashes with following TypeError: Cannot assign to read only property 'constructor' of object '#<Object>'
Is there a reason why the vitest extension is trying to modify the constructor property?
Expected behavior
The vitest extension should be able to test a module which freezes the Object.prototype.
Reproduction
Use Object.freeze(Object.prototype) in a module and test this with the vitest extension.
Activity