mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 08:42:45 +00:00

PR-URL: https://github.com/nodejs/node/pull/27311 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
23 lines
377 B
JavaScript
23 lines
377 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',
|
|
'cached_builtins',
|
|
]));
|
|
|
|
for (const key of keys) {
|
|
assert.strictEqual(typeof process.features[key], 'boolean');
|
|
}
|