mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
30b8bb0aab
If i18n support is present, add the icu version to process.versions Fixes: https://github.com/nodejs/node/issues/3089 PR-URL: https://github.com/nodejs/node/pull/3102 Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rod Vagg <rod@vagg.org>
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
var expected_keys = ['ares', 'http_parser', 'modules', 'node',
|
|
'uv', 'v8', 'zlib'];
|
|
|
|
if (common.hasCrypto) {
|
|
expected_keys.push('openssl');
|
|
}
|
|
|
|
if (typeof Intl !== 'undefined') {
|
|
expected_keys.push('icu');
|
|
}
|
|
|
|
assert.deepEqual(Object.keys(process.versions).sort(), expected_keys.sort());
|