Skip to content

Commit 376ec01

Browse files
codebyteretargos
authored andcommitted
test: handle undefined default_configuration
PR-URL: #30465 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8bb232f commit 376ec01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/common/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ const enoughTestCpu = Array.isArray(cpus) &&
118118

119119
const rootDir = isWindows ? 'c:\\' : '/';
120120

121-
const buildType = process.config.target_defaults.default_configuration;
122-
121+
const buildType = process.config.target_defaults ?
122+
process.config.target_defaults.default_configuration :
123+
'Release';
123124

124125
// If env var is set then enable async_hook hooks for all tests.
125126
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {

0 commit comments

Comments
 (0)