Skip to content

Commit

Permalink
clean up feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 4, 2012
1 parent 6fc71ba commit 329f784
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ exports = module.exports = createHarness();
exports.createHarness = createHarness;
exports.Test = Test;

var canEmitExit = false;
var canExit = false;
//*
var canEmitExit = typeof process !== 'undefined' && process
&& typeof process.on === 'function'
;
var canExit = typeof process !== 'undefined' && process
&& typeof process.exit === 'function'
;
//*/


function createHarness () {
var pending = [];
var running = false;
Expand Down

0 comments on commit 329f784

Please sign in to comment.