Skip to content

Commit ad4860e

Browse files
authored
Remove extraGlobals() (#3970)
support of Node v0.9.11 has been dropped years ago.
1 parent b269ad0 commit ad4860e

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

lib/runner.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function Runner(suite, delay) {
141141
});
142142
this._defaultGrep = /.*/;
143143
this.grep(this._defaultGrep);
144-
this.globals(this.globalProps().concat(extraGlobals()));
144+
this.globals(this.globalProps());
145145
}
146146

147147
/**
@@ -1016,30 +1016,6 @@ function thrown2Error(err) {
10161016
);
10171017
}
10181018

1019-
/**
1020-
* Array of globals dependent on the environment.
1021-
*
1022-
* @return {Array}
1023-
* @deprecated
1024-
* @todo remove; long since unsupported
1025-
* @private
1026-
*/
1027-
function extraGlobals() {
1028-
if (typeof process === 'object' && typeof process.version === 'string') {
1029-
var parts = process.version.split('.');
1030-
var nodeVersion = parts.reduce(function(a, v) {
1031-
return (a << 8) | v;
1032-
});
1033-
1034-
// 'errno' was renamed to process._errno in v0.9.11.
1035-
if (nodeVersion < 0x00090b) {
1036-
return ['errno'];
1037-
}
1038-
}
1039-
1040-
return [];
1041-
}
1042-
10431019
Runner.constants = constants;
10441020

10451021
/**

0 commit comments

Comments
 (0)