Skip to content

Commit

Permalink
remove extraGlobals()
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jul 24, 2019
1 parent 1e6cf3b commit 26a2fed
Showing 1 changed file with 1 addition and 25 deletions.
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

0 comments on commit 26a2fed

Please sign in to comment.