napi_cleanup_hook
callbackv3node_api.hFunction pointer used with napi_add_env_cleanup_hook. It will be called when the environment is being torn down.
Function pointer used with napi_add_env_cleanup_hook. It will be called
when the environment is being torn down.
Callback functions must satisfy the following signature:
typedef void (*napi_cleanup_hook)(void* data);
[in] data: The data that was passed tonapi_add_env_cleanup_hook.