on-crash

listen for the next uncaught error x-platform

on-crash

listen for the next uncaught error x-platform. Useful for testing your async errors aren't getting chewed up somewhere they shouldn't

With packin or component

$ packin add jkroso/on-crash

then in your app:

var onCrash = require('on-crash')

call fn at the next crash

Just run make and navigate your browser to the test.html file