Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wrap(process, '_fatalException', function (_fatalException) {
return function asyncListenerErrorWrapper(er) {
var length = listeners.length;
for (var i = 0; i < length; ++i) {
var callbacks = listeners[i].callbacks;
if (callbacks.error && callbacks.error({}, er)) {
process._needTickCallback();
return true;
}
}
return _fatalException(er);
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.