From c28a7b13870be5bfb5b234bac737dee29c53984c Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 20 Mar 2018 17:14:24 -0400 Subject: [PATCH] n-api: bump version of n-api supported Bump the version due to additions to the api. --- src/node_version.h | 2 +- test/addons-napi/test_general/test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_version.h b/src/node_version.h index 220ea88ba9de74..fcafd4576bec40 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -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_ diff --git a/test/addons-napi/test_general/test.js b/test/addons-napi/test_general/test.js index fa6240d384a0fd..fe38c1b9a2828c 100644 --- a/test/addons-napi/test_general/test.js +++ b/test/addons-napi/test_general/test.js @@ -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],