How can we listen for errors that do not trigger window.onerror?
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers.onerror
states:
Note that some/many error events do not trigger window.onerror, you have
to listen for them specifically.
Could you please provide some examples of errors that do not trigger
window.onerror? I know SyntaxError is one of them.
Could you please provide a small code example to show how we can listen
for such errors? Can we listen for SyntaxError too?
No comments:
Post a Comment