We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3a35b commit f523909Copy full SHA for f523909
packages/host/cpp/RuntimeNodeApi.cpp
@@ -146,13 +146,8 @@ napi_status napi_get_node_version(
146
return napi_invalid_arg;
147
}
148
149
- static napi_node_version version = {
150
- .major = NODE_MAJOR_VERSION,
151
- .minor = NODE_MINOR_VERSION,
152
- .patch = NODE_PATCH_VERSION,
153
- };
154
- *result = &version;
155
- return napi_ok;
+ *result = nullptr;
+ return napi_generic_failure;
156
157
158
napi_status napi_get_version(node_api_basic_env env, uint32_t* result) {
packages/host/cpp/Versions.hpp
@@ -1,7 +1,3 @@
1
#pragma once
2
3
-#define NODE_MAJOR_VERSION 8
4
-#define NODE_MINOR_VERSION 6
5
-#define NODE_PATCH_VERSION 0
6
-
7
-#define NAPI_VERSION 1
+#define NAPI_VERSION 8
0 commit comments