mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Use `internalBinding('config')` to shim the legacy
`process.features`.
PR-URL: https://github.com/nodejs/node/pull/25239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
21 lines
340 B
JavaScript
21 lines
340 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const keys = new Set(Object.keys(process.features));
|
|
|
|
assert.deepStrictEqual(keys, new Set([
|
|
'debug',
|
|
'uv',
|
|
'ipv6',
|
|
'tls_alpn',
|
|
'tls_sni',
|
|
'tls_ocsp',
|
|
'tls'
|
|
]));
|
|
|
|
for (const key of keys) {
|
|
assert.strictEqual(typeof process.features[key], 'boolean');
|
|
}
|