Skip to content

Commit 50f03fd

Browse files
author
James Halliday
committed
guard process.exit() with a canExit for browsers
1 parent a4bf708 commit 50f03fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function createHarness (conf_) {
4949

5050
out.on('end', function () {
5151
clearInterval(exitInterval);
52-
if (conf_.exit !== false) process.exit(exitCode);
52+
if (canExit && conf_.exit !== false) process.exit(exitCode);
5353
});
5454

5555
var test = function (name, conf, cb) {

0 commit comments

Comments
 (0)