☕️ Classic, reliable, trusted test framework for Node.js and the browser
Remove extraGlobals() (#3970)
Juerg Bad4860e0aa2d
diff --git a/lib/runner.js b/lib/runner.jsindex e41f6c5f..1b1d875a 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -141,7 +141,7 @@ function Runner(suite, delay) {});this._defaultGrep = /.*/;this.grep(this._defaultGrep);- this.globals(this.globalProps().concat(extraGlobals()));+ this.globals(this.globalProps());}/**@@ -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;/**