happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

Missing window.PromiseRejectionEvent API

Open chenxinyanc opened this issue 8 months ago • 0 comments

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 image

[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.

chenxinyanc avatar Jun 05 '24 07:06 chenxinyanc