Skip to content
Browse files

fixes issue #50: infinite loops from exceptions in "end" events

  • Loading branch information...
1 parent fa90fd1 commit d964c6f4fdf76679c1a28e10c58162490a8c3352 @substack committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tap-test.js
View
2 lib/tap-test.js
@@ -46,7 +46,7 @@ Test.prototype.threw = function (ex) {
this.fail(ex.name + ": " + ex.message, { error: ex, thrown: true })
// may emit further failing tests if the plan is not completed
//console.error("end, because it threw")
- this.end()
+ if (!this._ended) this.end()
}
Test.prototype.comment = function (m) {

0 comments on commit d964c6f

Please sign in to comment.
Something went wrong with that request. Please try again.