From 26a2fed2c8dbd68322dcc6396f31708e41a7dbad Mon Sep 17 00:00:00 2001 From: juergba Date: Wed, 24 Jul 2019 07:55:43 +0200 Subject: [PATCH] remove extraGlobals() --- lib/runner.js | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/lib/runner.js b/lib/runner.js index e41f6c5f97..1b1d875a80 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; /**