Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Merge pull request #985 from jpbochi/async-error-handling

Travis Jefferye7364f3c286e
diff --cc support/tail.js
index 0c50bb67,3f1193a1..8afab482
--- a/support/tail.js
+++ b/support/tail.js
@@@ -42,8 -47,8 +47,9 @@@ process.on = function(e, fn)
if ('uncaughtException' == e) {
global.onerror = function(err, url, line){
fn(new Error(err + ' (' + url + ':' + line + ')'));
+ return true;
};
+ uncaughtExceptionHandlers.push(fn);
}
};