Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit d964c6f4fdf76679c1a28e10c58162490a8c3352 1 parent fa90fd1
James Halliday authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/tap-test.js
2  lib/tap-test.js
@@ -46,7 +46,7 @@ Test.prototype.threw = function (ex) {
46 46 this.fail(ex.name + ": " + ex.message, { error: ex, thrown: true })
47 47 // may emit further failing tests if the plan is not completed
48 48 //console.error("end, because it threw")
49   - this.end()
  49 + if (!this._ended) this.end()
50 50 }
51 51
52 52 Test.prototype.comment = function (m) {

0 comments on commit d964c6f

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