n-api: bump version of n-api supported

Bump the version due to additions to the api.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Michael Dawson 2018-03-20 17:14:24 -04:00 committed by Ruben Bridgewater
parent 12f69ddfef
commit 6572f63afb
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
2 changed files with 3 additions and 3 deletions

View File

@ -112,6 +112,6 @@
#define NODE_MODULE_VERSION 62
// the NAPI_VERSION provided by this version of the runtime
#define NAPI_VERSION 2
#define NAPI_VERSION 3
#endif // SRC_NODE_VERSION_H_

View File

@ -33,8 +33,8 @@ assert.notStrictEqual(test_general.testGetPrototype(baseObject),
test_general.testGetPrototype(extendedObject));
// test version management functions
// expected version is currently 1
assert.strictEqual(test_general.testGetVersion(), 2);
// 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],