Skip to content

Commit

Permalink
src: add uvwasi version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MrJithil authored and targos committed Dec 13, 2022
1 parent 4165dcd commit 5d7cd36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "node.h"
#include "util.h"
#include "uv.h"
#include "uvwasi.h"
#include "v8.h"
#include "zlib.h"

Expand Down Expand Up @@ -90,6 +91,8 @@ Metadata::Versions::Versions() {
"." +
std::to_string(BrotliEncoderVersion() & 0xFFF);

uvwasi = UVWASI_VERSION_STRING;

#if HAVE_OPENSSL
openssl = GetOpenSSLVersion();
#endif
Expand Down
1 change: 1 addition & 0 deletions src/node_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-process-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const expected_keys = [
'nghttp2',
'napi',
'llhttp',
'uvwasi',
];

if (common.hasCrypto) {
Expand Down

0 comments on commit 5d7cd36

Please sign in to comment.