Skip to content

Commit f523909

Browse files
committed
refactor: bumped NAPI_VERSION + removed node
1 parent fc3a35b commit f523909

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

packages/host/cpp/RuntimeNodeApi.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,8 @@ napi_status napi_get_node_version(
146146
return napi_invalid_arg;
147147
}
148148

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;
149+
*result = nullptr;
150+
return napi_generic_failure;
156151
}
157152

158153
napi_status napi_get_version(node_api_basic_env env, uint32_t* result) {

packages/host/cpp/Versions.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#pragma once
22

3-
#define NODE_MAJOR_VERSION 8
4-
#define NODE_MINOR_VERSION 6
5-
#define NODE_PATCH_VERSION 0
6-
7-
#define NAPI_VERSION 1
3+
#define NAPI_VERSION 8

0 commit comments

Comments
 (0)