Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c6b75429ad5ee156af4d708b62432c471a0db2e8 1 parent 399a5ad
@substack substack authored committed
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.