From b1b3493b24535d8995354659dac666e986946855 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Fri, 8 Dec 2023 13:49:11 +0800 Subject: [PATCH] introduce experimental feature flags (https://github.com/nodejs/node/pull/50991) --- packages/emnapi/include/js_native_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/emnapi/include/js_native_api.h b/packages/emnapi/include/js_native_api.h index 70d7de3a..b7404bac 100644 --- a/packages/emnapi/include/js_native_api.h +++ b/packages/emnapi/include/js_native_api.h @@ -99,6 +99,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_string_utf16(napi_env env, size_t length, napi_value* result); #ifdef NAPI_EXPERIMENTAL +#define NODE_API_EXPERIMENTAL_HAS_EXTERNAL_STRINGS NAPI_EXTERN napi_status NAPI_CDECL node_api_create_external_string_latin1(napi_env env, char* str, @@ -524,6 +525,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_add_finalizer(napi_env env, #endif // NAPI_VERSION >= 5 #ifdef NAPI_EXPERIMENTAL +#define NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER NAPI_EXTERN napi_status NAPI_CDECL node_api_post_finalizer(napi_env env,