diff options
author | Rich Trott <rtrott@gmail.com> | 2017-10-26 16:50:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-27 10:04:23 -0700 |
commit | 98eab4a4610bc9a9b6f95fafd1af364c58564094 (patch) | |
tree | 83ed348416a383a65c1c82d0ba6a9c237e076663 /test/common/index.js | |
parent | 2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6 (diff) | |
download | android-node-v8-98eab4a4610bc9a9b6f95fafd1af364c58564094.tar.gz android-node-v8-98eab4a4610bc9a9b6f95fafd1af364c58564094.tar.bz2 android-node-v8-98eab4a4610bc9a9b6f95fafd1af364c58564094.zip |
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 <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/index.js b/test/common/index.js index 76b86b6772..04f0c79b2f 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__) |