From 98eab4a4610bc9a9b6f95fafd1af364c58564094 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 26 Oct 2017 16:50:43 -0700 Subject: [PATCH] test: use process.features.debug in common module Replace process.config.target_defaults.default_configuration check with process.features.debug. PR-URL: https://github.com/nodejs/node/pull/16537 Ref: https://github.com/nodejs/node/pull/4431#issuecomment-173663527 Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- test/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index 76b86b67729a04..04f0c79b2fdfaa 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -340,7 +340,7 @@ exports.spawnSyncPwd = function(options) { }; exports.platformTimeout = function(ms) { - if (process.config.target_defaults.default_configuration === 'Debug') + if (process.features.debug) ms = 2 * ms; if (global.__coverage__)