Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schulhof <gabrielschulhof@gmail.com>2021-03-07 19:52:09 +0300
committerMichael Dawson <mdawson@devrus.com>2021-03-11 00:31:16 +0300
commitd15475578abfcc7e0a420719b8d55a6b3ab4f198 (patch)
tree13e945c2b77dfc035afd79f0802f717cc0a41130 /src/node_api.h
parent117e293c376d54665e3c7d7b5b2ed15ef530ada1 (diff)
node-api: define version 8
Mark as stable the APIs that define Node-API version 8. PR-URL: https://github.com/nodejs/node/pull/37652 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r--src/node_api.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node_api.h b/src/node_api.h
index e7be240cdcc..1772c67c15a 100644
--- a/src/node_api.h
+++ b/src/node_api.h
@@ -250,7 +250,7 @@ napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func);
#endif // NAPI_VERSION >= 4
-#ifdef NAPI_EXPERIMENTAL
+#if NAPI_VERSION >= 8
NAPI_EXTERN napi_status napi_add_async_cleanup_hook(
napi_env env,
@@ -261,6 +261,10 @@ NAPI_EXTERN napi_status napi_add_async_cleanup_hook(
NAPI_EXTERN napi_status napi_remove_async_cleanup_hook(
napi_async_cleanup_hook_handle remove_handle);
+#endif // NAPI_VERSION >= 8
+
+#ifdef NAPI_EXPERIMENTAL
+
NAPI_EXTERN napi_status
node_api_get_module_file_name(napi_env env, const char** result);