RE: Exceptions in event listeners triggered by dispatchEvent().
Domenic Denicola <[email protected]>
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <B4AE8F4E86E26C47AC407D49872F6F9F877D06EB@BY2PRD0510MB354.namprd05.prod.outlook.com> |
From: Boris Zbarsky [[email protected]] > Uh... Sure there is. It's as simple as a function that catches the exception and then calls window.onerror, no? My impression was that `window.onerror` had a lot of special semantics behind it, e.g. censoring cross-domain stack traces on `Error` objects, determining the error message/URL/line number combination (sometimes), dealing with the return value of onerror, etc. See http://www.w3.org/html/wg/drafts/html/master/webappapis.html#runtime-script-errors and related.