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 <gabriel.schulhof@intel.com>2019-01-18 09:09:48 +0300
committerGabriel Schulhof <gabriel.schulhof@intel.com>2019-01-22 09:30:11 +0300
commit11387e1454d8b8311dfdb1bac6a7ec1a1494946d (patch)
treee0368510a96393a1827346cd0ed0db8069aa3741 /src/node_api.h
parent2c9e12e49656fa194376cf01356bc964e0d9161b (diff)
n-api: mark thread-safe function as stable
Fixes: https://github.com/nodejs/node/issues/24249 PR-URL: https://github.com/nodejs/node/pull/25556 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r--src/node_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_api.h b/src/node_api.h
index b36f6d4b7a4..a37ee06ce16 100644
--- a/src/node_api.h
+++ b/src/node_api.h
@@ -192,7 +192,7 @@ NAPI_EXTERN napi_status napi_close_callback_scope(napi_env env,
#endif // NAPI_VERSION >= 3
-#ifdef NAPI_EXPERIMENTAL
+#if NAPI_VERSION >= 4
// Calling into JS from other threads
NAPI_EXTERN napi_status
@@ -230,7 +230,7 @@ napi_unref_threadsafe_function(napi_env env, napi_threadsafe_function func);
NAPI_EXTERN napi_status
napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func);
-#endif // NAPI_EXPERIMENTAL
+#endif // NAPI_VERSION >= 4
EXTERN_C_END