diff --git a/include/js_native_api_types.h b/include/js_native_api_types.h index a0da104..dc4922e 100644 --- a/include/js_native_api_types.h +++ b/include/js_native_api_types.h @@ -157,6 +157,10 @@ typedef void(NAPI_CDECL* napi_finalize)(napi_env env, typedef napi_finalize node_api_nogc_finalize; typedef node_api_nogc_finalize node_api_basic_finalize; +// A finalizer that can be called from any thread and at any time. +typedef void(NAPI_CDECL* node_api_noenv_finalize)(void* finalize_data, + void* finalize_hint); + typedef struct { // One of utf8name or name should be NULL. const char* utf8name;