| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 20dae2a commit 30b8bb0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -648,6 +648,7 @@ Will print something like: | |||
| 648 | 648 | zlib: '1.2.8', | |
| 649 | 649 | ares: '1.10.0-DEV', | |
| 650 | 650 | modules: '43', | |
| 651 | + icu: '55.1', | ||
| 651 | 652 | openssl: '1.0.1k' } | |
| 652 | 653 | ||
| 653 | 654 | ## process.config | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,6 +52,10 @@ | |||
| 52 | 52 | #include <string.h> | |
| 53 | 53 | #include <sys/types.h> | |
| 54 | 54 | ||
| 55 | + #if defined(NODE_HAVE_I18N_SUPPORT) | ||
| 56 | + #include <unicode/uvernum.h> | ||
| 57 | + #endif | ||
| 58 | + | ||
| 55 | 59 | #if defined(LEAK_SANITIZER) | |
| 56 | 60 | #include <sanitizer/lsan_interface.h> | |
| 57 | 61 | #endif | |
@@ -2669,6 +2673,12 @@ void SetupProcessObject(Environment* env, | |||
| 2669 | 2673 | "ares", | |
| 2670 | 2674 | FIXED_ONE_BYTE_STRING(env->isolate(), ARES_VERSION_STR)); | |
| 2671 | 2675 | ||
| 2676 | + #if defined(NODE_HAVE_I18N_SUPPORT) && defined(U_ICU_VERSION) | ||
| 2677 | + READONLY_PROPERTY(versions, | ||
| 2678 | + "icu", | ||
| 2679 | + OneByteString(env->isolate(), U_ICU_VERSION)); | ||
| 2680 | + #endif | ||
| 2681 | + | ||
| 2672 | 2682 | const char node_modules_version[] = NODE_STRINGIFY(NODE_MODULE_VERSION); | |
| 2673 | 2683 | READONLY_PROPERTY( | |
| 2674 | 2684 | versions, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,4 +9,8 @@ if (common.hasCrypto) { | |||
| 9 | 9 | expected_keys.push('openssl'); | |
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | + if (typeof Intl !== 'undefined') { | ||
| 13 | + expected_keys.push('icu'); | ||
| 14 | + } | ||
| 15 | + | ||
| 12 | 16 | assert.deepEqual(Object.keys(process.versions).sort(), expected_keys.sort()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments