Skip to content

Commit

Permalink
n-api: bump version of n-api supported
Browse files Browse the repository at this point in the history
Bump the version due to additions to the api.

Backport-PR-URL: #19447
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>
  • Loading branch information
mhdawson authored and MylesBorins committed Apr 16, 2018
1 parent 71acb52 commit c6d0a66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/node_version.h
Expand Up @@ -62,6 +62,6 @@
#define NODE_MODULE_VERSION 48 /* Node.js v6.0.0 */

// the NAPI_VERSION provided by this version of the runtime
#define NAPI_VERSION 2
#define NAPI_VERSION 3

#endif // SRC_NODE_VERSION_H_
6 changes: 3 additions & 3 deletions test/addons-napi/test_general/test.js
Expand Up @@ -32,9 +32,9 @@ assert.strictEqual(test_general.testGetPrototype(extendedObject),
assert.notStrictEqual(test_general.testGetPrototype(baseObject),
test_general.testGetPrototype(extendedObject));

// test version management funcitons
// expected version is currently 1
assert.strictEqual(test_general.testGetVersion(), 2);
// test version management functions
// expected version is currently 3
assert.strictEqual(test_general.testGetVersion(), 3);

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

0 comments on commit c6d0a66

Please sign in to comment.