Skip to content

Commit

Permalink
guard process.exit() with a canExit for browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 25, 2013
1 parent a4bf708 commit 50f03fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -49,7 +49,7 @@ function createHarness (conf_) {

out.on('end', function () {
clearInterval(exitInterval);
if (conf_.exit !== false) process.exit(exitCode);
if (canExit && conf_.exit !== false) process.exit(exitCode);
});

var test = function (name, conf, cb) {
Expand Down

0 comments on commit 50f03fd

Please sign in to comment.