Skip to content

Support PromiseRejectionEvent #1925

@PierBJX

Description

@PierBJX

Is your feature request related to a problem? Please describe.
On the global scope, PromiseRejectionEvent is available (see MDN).

But when I run this code:

import { Window } from "happy-dom";
const window = new Window();
console.log(window.PromiseRejectionEvent); // => undefined

This poses an issue for tests running in Jest with @happy-dom/jest-environment.

Describe the solution you'd like
Implement this globally.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions