diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 512c0f93ce6ba4..d9ddf045b31e9b 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -2951,10 +2951,9 @@ of the ECMAScript Language Specification. ### napi_detach_arraybuffer -> Stability: 1 - Experimental - ```C napi_status napi_detach_arraybuffer(napi_env env, napi_value arraybuffer) @@ -2977,10 +2976,9 @@ defined in [Section 24.1.1.3][] of the ECMAScript Language Specification. ### napi_is_detached_arraybuffer -> Stability: 1 - Experimental - ```C napi_status napi_is_detached_arraybuffer(napi_env env, napi_value arraybuffer, diff --git a/src/node_api.h b/src/node_api.h index 3b1ee6eaf6a1f4..8851b0eac886b5 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -10,7 +10,7 @@ #define NAPI_VERSION 2147483647 #else // The baseline version for N-API -#define NAPI_VERSION 6 +#define NAPI_VERSION 7 #endif #endif @@ -747,7 +747,7 @@ napi_get_all_property_names(napi_env env, #endif // NAPI_VERSION >= 6 -#ifdef NAPI_EXPERIMENTAL +#if NAPI_VERSION >= 7 // ArrayBuffer detaching NAPI_EXTERN napi_status napi_detach_arraybuffer(napi_env env, @@ -757,7 +757,7 @@ NAPI_EXTERN napi_status napi_is_detached_arraybuffer(napi_env env, napi_value value, bool* result); -#endif // NAPI_EXPERIMENTAL +#endif // NAPI_VERSION >= 7 EXTERN_C_END diff --git a/src/node_version.h b/src/node_version.h index d5302112c81c20..ae768a1a76c8ff 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -115,6 +115,6 @@ // The NAPI_VERSION provided by this version of the runtime. This is the version // which the Node binary being built supports. -#define NAPI_VERSION 6 +#define NAPI_VERSION 7 #endif // SRC_NODE_VERSION_H_ diff --git a/test/addons-napi/test_general/test.js b/test/addons-napi/test_general/test.js index 1e0a98f48d320b..d841e289eab53f 100644 --- a/test/addons-napi/test_general/test.js +++ b/test/addons-napi/test_general/test.js @@ -34,7 +34,7 @@ assert.notStrictEqual(test_general.testGetPrototype(baseObject), // test version management functions // expected version is currently 4 -assert.strictEqual(test_general.testGetVersion(), 6); +assert.strictEqual(test_general.testGetVersion(), 7); const [ major, minor, patch, release ] = test_general.testGetNodeVersion(); assert.strictEqual(process.version.split('-')[0], diff --git a/test/addons-napi/test_typedarray/test_typedarray.c b/test/addons-napi/test_typedarray/test_typedarray.c index 00ceabdb964962..14c5eb7f49b652 100644 --- a/test/addons-napi/test_typedarray/test_typedarray.c +++ b/test/addons-napi/test_typedarray/test_typedarray.c @@ -1,4 +1,3 @@ -#define NAPI_EXPERIMENTAL #include #include #include "../common.h"