Skip to content

Commit 6572f63

Browse files
mhdawsonBridgeAR
authored andcommitted
n-api: bump version of n-api supported
Bump the version due to additions to the api. PR-URL: nodejs#19497 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 12f69dd commit 6572f63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/node_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@
112112
#define NODE_MODULE_VERSION 62
113113

114114
// the NAPI_VERSION provided by this version of the runtime
115-
#define NAPI_VERSION 2
115+
#define NAPI_VERSION 3
116116

117117
#endif // SRC_NODE_VERSION_H_

test/addons-napi/test_general/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ assert.notStrictEqual(test_general.testGetPrototype(baseObject),
3333
test_general.testGetPrototype(extendedObject));
3434

3535
// test version management functions
36-
// expected version is currently 1
37-
assert.strictEqual(test_general.testGetVersion(), 2);
36+
// expected version is currently 3
37+
assert.strictEqual(test_general.testGetVersion(), 3);
3838

3939
const [ major, minor, patch, release ] = test_general.testGetNodeVersion();
4040
assert.strictEqual(process.version.split('-')[0],

0 commit comments

Comments
 (0)