summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-01-30 23:19:45 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-02-02 05:41:45 +0800
commitc2359bdad62b83d40976d91e91097684c23a7ae3 (patch)
treeede78a4d84d9f2c3d661fed39c3a4cf4294d8104 /tools
parent39d922123c02aecc2e289a08e3bdb9515a7b193a (diff)
downloadandroid-node-v8-c2359bdad62b83d40976d91e91097684c23a7ae3.tar.gz
android-node-v8-c2359bdad62b83d40976d91e91097684c23a7ae3.tar.bz2
android-node-v8-c2359bdad62b83d40976d91e91097684c23a7ae3.zip
process: expose process.features.inspector
Instead of using process.config.variables.v8_enable_inspector to detect whether inspector is enabled in the build. PR-URL: https://github.com/nodejs/node/pull/25819 Refs: https://github.com/nodejs/node/issues/25343 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test.py b/tools/test.py
index 4ac8d0e631..b9750b2035 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -1653,8 +1653,8 @@ def Main():
# We want to skip the inspector tests if node was built without the inspector.
has_inspector = Execute([vm,
- '-p', 'process.config.variables.v8_enable_inspector'], context)
- if has_inspector.stdout.rstrip() == '0':
+ '-p', 'process.features.inspector'], context)
+ if has_inspector.stdout.rstrip() == 'false':
context.v8_enable_inspector = False
has_crypto = Execute([vm,