summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/common/index.js b/test/common/index.js
index eeaa5737db..8554b85fe8 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -80,8 +80,7 @@ if (process.argv.length === 2 &&
hasCrypto &&
// If the binary is build without `intl` the inspect option is
// invalid. The test itself should handle this case.
- (process.config.variables.v8_enable_inspector !== 0 ||
- !flag.startsWith('--inspect'))) {
+ (process.features.inspector || !flag.startsWith('--inspect'))) {
throw new Error(`Test has to be started with the flag: '${flag}'`);
}
}
@@ -618,7 +617,7 @@ function expectsError(fn, settings, exact) {
}
function skipIfInspectorDisabled() {
- if (process.config.variables.v8_enable_inspector === 0) {
+ if (!process.features.inspector) {
skip('V8 inspector is disabled');
}
}