summaryrefslogtreecommitdiff
path: root/test/fixtures/overwrite-config-preload-module.js
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-09-25 09:10:53 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-11-13 08:26:38 +0100
commit1aac4c1d8f0860d8050baabaef255508d001114b (patch)
tree9d539299b41dd09caeb34901e2cb1116f02b2678 /test/fixtures/overwrite-config-preload-module.js
parentc2d63a9785426d4c37e3eec8c3de1dfad741c3d4 (diff)
downloadandroid-node-v8-1aac4c1d8f0860d8050baabaef255508d001114b.tar.gz
android-node-v8-1aac4c1d8f0860d8050baabaef255508d001114b.tar.bz2
android-node-v8-1aac4c1d8f0860d8050baabaef255508d001114b.zip
lib: guard inspector console using process var
Currently the inspector module is always loaded and if it does not return anything the inspector console setup is skipped. This commit uses the process.config.variables.v8_enable_inspector variable to only load the inspector module if it is enabled. PR-URL: https://github.com/nodejs/node/pull/15008 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/fixtures/overwrite-config-preload-module.js')
-rw-r--r--test/fixtures/overwrite-config-preload-module.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fixtures/overwrite-config-preload-module.js b/test/fixtures/overwrite-config-preload-module.js
new file mode 100644
index 0000000000..21cb966a54
--- /dev/null
+++ b/test/fixtures/overwrite-config-preload-module.js
@@ -0,0 +1,5 @@
+'use strict'
+const common = require('../common');
+common.skipIfInspectorDisabled();
+
+process.config = {};