mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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>
22 lines
355 B
JavaScript
22 lines
355 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const keys = new Set(Object.keys(process.features));
|
|
|
|
assert.deepStrictEqual(keys, new Set([
|
|
'inspector',
|
|
'debug',
|
|
'uv',
|
|
'ipv6',
|
|
'tls_alpn',
|
|
'tls_sni',
|
|
'tls_ocsp',
|
|
'tls'
|
|
]));
|
|
|
|
for (const key of keys) {
|
|
assert.strictEqual(typeof process.features[key], 'boolean');
|
|
}
|