Skip to content

Commit

Permalink
Remove extraGlobals() (#3970)
Browse files Browse the repository at this point in the history
support of Node v0.9.11 has been dropped years ago.
  • Loading branch information
juergba authored Aug 1, 2019
1 parent b269ad0 commit ad4860e
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 ad4860e

Please sign in to comment.