From 2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6 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. PR-URL: https://github.com/nodejs/node/pull/16538 Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig --- 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, '/');