summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2019-11-13 12:50:52 +0000
committerShelley Vohr <shelley.vohr@gmail.com>2019-11-18 09:23:58 -0800
commit70281ce1f0598822d536a8c80c1a2b8fdfcd2a63 (patch)
tree4cebbf40a2bd577fa79639b9826bf4e8b747155f /test
parent5bb4d85b25573fd7d6b778db2f43c32cf392c5c4 (diff)
downloadandroid-node-v8-70281ce1f0598822d536a8c80c1a2b8fdfcd2a63.tar.gz
android-node-v8-70281ce1f0598822d536a8c80c1a2b8fdfcd2a63.tar.bz2
android-node-v8-70281ce1f0598822d536a8c80c1a2b8fdfcd2a63.zip
test: handle undefined default_configuration
PR-URL: https://github.com/nodejs/node/pull/30465 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/common/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 98a2687222..888a1feba3 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -118,8 +118,9 @@ const enoughTestCpu = Array.isArray(cpus) &&
const rootDir = isWindows ? 'c:\\' : '/';
-const buildType = process.config.target_defaults.default_configuration;
-
+const buildType = process.config.target_defaults ?
+ process.config.target_defaults.default_configuration :
+ 'Release';
// If env var is set then enable async_hook hooks for all tests.
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {