Skip to content

Commit

Permalink
fix(reporters): Throwing error without loosing stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
delfrrr committed Mar 18, 2016
1 parent 53f53bb commit 8a515ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
window.console.log(msg + result.suite.join(' ') + ' ' + result.description);

for (var i = 0; i < result.log.length; i++) {
window.console.error(result.log[i]);
//throwing error without loosing stack trace
(function (err) {
setTimeout(function() {
throw err;
});
})(result.log[i])
}
} : function() {},
loaded: function() {
Expand Down

0 comments on commit 8a515ae

Please sign in to comment.