Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Return true from window.onerror handler

John Firebaughf849d2bdd4ec
diff --git a/support/tail.js b/support/tail.js
index 78cdbd7d..748b95ad 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -41,6 +41,7 @@ process.on = function(e, fn){
if ('uncaughtException' == e) {
window.onerror = function(err, url, line){
fn(new Error(err + ' (' + url + ':' + line + ')'));
+ return true;
};
}
};