Skip to content

Commit 367113f

Browse files
mhdawsonMylesBorins
authored andcommitted
n-api: bump version of n-api supported
Bump the version due to additions to the api. Backport-PR-URL: #19265 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 f0ba2c6 commit 367113f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/node_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@
108108
#define NODE_MODULE_VERSION 57
109109

110110
// the NAPI_VERSION provided by this version of the runtime
111-
#define NAPI_VERSION 2
111+
#define NAPI_VERSION 3
112112

113113
#endif // SRC_NODE_VERSION_H_

test/addons-napi/test_general/test.js

Lines changed: 2 additions & 2 deletions
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)