diff options
author | Rich Trott <rtrott@gmail.com> | 2017-10-26 16:56:19 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-27 09:50:37 -0700 |
commit | 2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6 (patch) | |
tree | 94b5c197f7751aef733e43049cb76ca696db3f70 /test/addons | |
parent | 502563b277914bf259f2ce6a29fe826cf1f7656e (diff) | |
download | android-node-v8-2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6.tar.gz android-node-v8-2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6.tar.bz2 android-node-v8-2f47b6869ad4e5f49a8234edd2635fef6f0bb6c6.zip |
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 <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>
Diffstat (limited to 'test/addons')
-rw-r--r-- | test/addons/repl-domain-abort/test.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/addons/repl-domain-abort/test.js b/test/addons/repl-domain-abort/test.js index 314a219125..1d6116159c 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, '/'); |