1. unhandledrejection/rejectionhandled events

    The `unhandledrejection` event is fired when a Promise is rejected but there is no rejection handler to deal with the rejection. The `rejectionhandled` event is fired when a Promise is rejected, and after the rejection is handled by the promise's rejection handling code.

  2. window api: `unhandledrejection` event