1// If you would like to access errors thrown from event handlers,
2// you may listen to the error event on window.
3// It will be emitted for all uncaught errors in the current JavaScript VM:
4window.addEventListener('error', function(event) {
5 console.log("Got an uncaught error: ", event.error)
6})
7