Skip to content

Commit a0fcd4d

Browse files
Trottgibfahn
authored andcommitted
test: use common.buildType in repl-domain-abort
use `common.buildType` instead of `process.config.target_defaults.default_configuration` in repl-domain-abort addon test. PR-URL: #16538 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: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 525700b commit a0fcd4d

File tree

1 file changed

+1
-2
lines changed
  • test/addons/repl-domain-abort

1 file changed

+1
-2
lines changed

test/addons/repl-domain-abort/test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const assert = require('assert');
2525
const repl = require('repl');
2626
const stream = require('stream');
2727
const path = require('path');
28-
const buildType = process.config.target_defaults.default_configuration;
29-
let buildPath = path.join(__dirname, 'build', buildType, 'binding');
28+
let buildPath = path.join(__dirname, 'build', common.buildType, 'binding');
3029
// On Windows, escape backslashes in the path before passing it to REPL.
3130
if (common.isWindows)
3231
buildPath = buildPath.replace(/\\/g, '/');

0 commit comments

Comments
 (0)