1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibWeb: Implement PromiseRejectionEvent

This paves the way for the rejectionhandled and unhandledrejection
events.

It's also used by core-js (in browsers, at least) to check whether
Promise needs to be polyfilled, so adding it should allow more websites
to leverage LibJS's native Promise implementation :^)
This commit is contained in:
Linus Groh 2021-10-11 12:59:45 +01:00
parent 661dd32432
commit f952db1a1f
6 changed files with 75 additions and 0 deletions

View file

@ -195,6 +195,7 @@ class MessageChannel;
class MessageEvent;
class MessagePort;
class PageTransitionEvent;
class PromiseRejectionEvent;
class SubmitEvent;
class WebSocket;
}
@ -400,6 +401,7 @@ class PerformanceTimingWrapper;
class PerformanceWrapper;
class ProcessingInstructionWrapper;
class ProgressEventWrapper;
class PromiseRejectionEventWrapper;
class ResizeObserverWrapper;
class ScreenWrapper;
class ScriptExecutionContext;