happy-dom
happy-dom copied to clipboard
Missing window.PromiseRejectionEvent API
Describe the bug
While there is ErrorEvent
provided by happy-dom
, there seems to be a lack of PromiseRejectionEvent from window
.
To Reproduce
Use the following code in vitest with environment: "happy-dom"
as vitest config.
console.log(window.ErrorEvent);
console.log(window.PromiseRejectionEvent);
Expected behavior I should see both logs to be non-undefined.
Screenshots
[class ErrorEvent extends UIEvent]
undefined
Device:
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.