Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function Runner(suite, delay) {
});
this._defaultGrep = /.*/;
this.grep(this._defaultGrep);
this.globals(this.globalProps().concat(extraGlobals()));
this.globals(this.globalProps());
}

/**
Expand Down Expand Up @@ -1016,30 +1016,6 @@ function thrown2Error(err) {
);
}

/**
* Array of globals dependent on the environment.
*
* @return {Array}
* @deprecated
* @todo remove; long since unsupported
* @private
*/
function extraGlobals() {
if (typeof process === 'object' && typeof process.version === 'string') {
var parts = process.version.split('.');
var nodeVersion = parts.reduce(function(a, v) {
return (a << 8) | v;
});

// 'errno' was renamed to process._errno in v0.9.11.
if (nodeVersion < 0x00090b) {
return ['errno'];
}
}

return [];
}

Runner.constants = constants;

/**
Expand Down