From e23b37cb696f349f472a73aff8fc2419a5664ce3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 26 Oct 2017 16:56:19 -0700 Subject: [PATCH] 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. --- test/addons/repl-domain-abort/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/addons/repl-domain-abort/test.js b/test/addons/repl-domain-abort/test.js index 314a219125024f..1d6116159c85b6 100644 --- a/test/addons/repl-domain-abort/test.js +++ b/test/addons/repl-domain-abort/test.js @@ -25,8 +25,7 @@ const assert = require('assert'); const repl = require('repl'); const stream = require('stream'); const path = require('path'); -const buildType = process.config.target_defaults.default_configuration; -let buildPath = path.join(__dirname, 'build', buildType, 'binding'); +let buildPath = path.join(__dirname, 'build', common.buildType, 'binding'); // On Windows, escape backslashes in the path before passing it to REPL. if (common.isWindows) buildPath = buildPath.replace(/\\/g, '/');