Skip to content

Commit 94a10ba

Browse files
mhdawsontargos
authored andcommitted
n-api: bump version of n-api supported
Bump the version due to additions to the api. PR-URL: #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 6c46681 commit 94a10ba

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
@@ -109,6 +109,6 @@
109109
#define NODE_MODULE_VERSION 59
110110

111111
// the NAPI_VERSION provided by this version of the runtime
112-
#define NAPI_VERSION 2
112+
#define NAPI_VERSION 3
113113

114114
#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)