mirror of https://gitee.com/openkylin/nodejs.git
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');
|
|
}
|