export const toStackOverflowOnError = function(f) {
return function() {
try {
f(...Array.from(arguments));
} catch ( e ) {
window.location.href = 'http://stackoverflow.com/search?q=[js]+e.message';
}
}
};
Last active
February 8, 2016 07:39
-
-
Save wmira/bcbdeed32329ee29fd7d to your computer and use it in GitHub Desktop.
Exception Handler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment