Skip to content

Commit a58bf14

Browse files
MrJithildanielleadams
authored andcommitted
src: add uvwasi version
PR-URL: #45639 Refs: #45260 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4493266 commit a58bf14

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/node_metadata.cc

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "node.h"
77
#include "util.h"
88
#include "uv.h"
9+
#include "uvwasi.h"
910
#include "v8.h"
1011
#include "zlib.h"
1112

@@ -90,6 +91,8 @@ Metadata::Versions::Versions() {
9091
"." +
9192
std::to_string(BrotliEncoderVersion() & 0xFFF);
9293

94+
uvwasi = UVWASI_VERSION_STRING;
95+
9396
#if HAVE_OPENSSL
9497
openssl = GetOpenSSLVersion();
9598
#endif

src/node_metadata.h

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ namespace node {
3838
V(nghttp2) \
3939
V(napi) \
4040
V(llhttp) \
41+
V(uvwasi)
4142

4243
#if HAVE_OPENSSL
4344
#define NODE_VERSIONS_KEY_CRYPTO(V) V(openssl)

test/parallel/test-process-versions.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const expected_keys = [
1313
'nghttp2',
1414
'napi',
1515
'llhttp',
16+
'uvwasi',
1617
];
1718

1819
if (common.hasCrypto) {

0 commit comments

Comments
 (0)