Which error events do no trigger [removed]?

2019-04-23 13:28发布

问题:

MDN states the following (source):

some/many error events do not trigger window.onerror, you have to listen for them specifically

That's great, but which ones do not trigger onerror?

Thanks.

回答1:

It looks like quirksmode has a good detail of what errors it will and will not catch: http://www.quirksmode.org/dom/events/error.html

If it helps, any error that you specifically throw will be caught.