From 376ec0128ccd8cd49b8952019e5f0cf71eb5c9b1 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 13 Nov 2019 12:50:52 +0000 Subject: [PATCH] test: handle undefined default_configuration PR-URL: https://github.com/nodejs/node/pull/30465 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: David Carlier Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- test/common/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/common/index.js b/test/common/index.js index 98a26872223cb9..888a1feba37462 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) {