src: add uvwasi version

PR-URL: https://github.com/nodejs/node/pull/45639
Refs: https://github.com/nodejs/node/issues/45260
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Jithil P Ponnan
2022-12-12 06:24:28 +11:00
committed by GitHub
parent 215c5317d4
commit 5108cf2df4
3 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include "node.h"
#include "util.h"
#include "uv.h"
#include "uvwasi.h"
#include "v8.h"
#include "zlib.h"
@@ -90,6 +91,8 @@ Metadata::Versions::Versions() {
"." +
std::to_string(BrotliEncoderVersion() & 0xFFF);
uvwasi = UVWASI_VERSION_STRING;
#if HAVE_OPENSSL
openssl = GetOpenSSLVersion();
#endif

View File

@@ -38,6 +38,7 @@ namespace node {
V(nghttp2) \
V(napi) \
V(llhttp) \
V(uvwasi)
#if HAVE_OPENSSL
#define NODE_VERSIONS_KEY_CRYPTO(V) V(openssl)

View File

@@ -13,6 +13,7 @@ const expected_keys = [
'nghttp2',
'napi',
'llhttp',
'uvwasi',
];
if (common.hasCrypto) {