Mixin and Primitive Interface

settings_applicationsWindowEventHandlers

Mixin and Primitive Interface

Editing
  • settings_backup_restore
  • bug_report

Event handleronunhandledrejection

insert_drive_filePromiseRejectionEventinterfaceopen_in_new
PromiseRejectionEvent interface의 unhandledrejection 이벤트는 WindowEventHandlers의 onunhandledrejection 핸들러에 의해 구현된다.

WindowEventHandlers의 onunhandledrejection는(은) PromiseRejectionEvent interface의 unhandledrejection 이벤트 타입의 핸들러이고 이벤트 리스너로 사용된다.

기본 개요

설명

디버깅 및 예상치 못한 상황에 대한 대체 오류 처리를 제공할 경우 유용하다.

구문

형식
window.addEventListener("unhandledrejection", function() {});

명세

typeunhandledrejection
bubblesno
cancelableyes
targetWindow, Worker
handleryes

지원 웹브라우저