process: expose NODE_MODULE_VERSION in process.versions

This commit is contained in:
Rod Vagg authored and Ben Noordhuis committed 2013-04-08 16:48:18 +02:00
1 parent 21f3c5c367
commit ccabd4a6fa
3 files changed
+12 -7

No files matched your search

+2
View File
@@ -2356,6 +2356,8 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
versions->Set(String::NewSymbol("ares"), String::New(ARES_VERSION_STR));
versions->Set(String::NewSymbol("uv"), String::New(uv_version_string()));
versions->Set(String::NewSymbol("zlib"), String::New(ZLIB_VERSION));
versions->Set(String::NewSymbol("modules"),
String::New(NODE_STRINGIFY(NODE_MODULE_VERSION)));
#if HAVE_OPENSSL
// Stupid code to slice out the version string.
int c, l = strlen(OPENSSL_VERSION_TEXT);