@@ -925,21 +925,25 @@ struct ACHHandle;
925
925
struct NODE_EXTERN DeleteACHHandle { void operator ()(ACHHandle*) const ; };
926
926
typedef std::unique_ptr<ACHHandle, DeleteACHHandle> AsyncCleanupHookHandle;
927
927
928
- NODE_EXTERN ACHHandle* AddEnvironmentCleanupHookRaw (
928
+ /* This function is not intended to be used externally, it exists to aid in
929
+ * keeping ABI compatibility between Node and Electron. */
930
+ NODE_EXTERN ACHHandle* AddEnvironmentCleanupHookInternal (
929
931
v8::Isolate* isolate,
930
932
void (*fun)(void * arg, void (*cb)(void *), void* cbarg),
931
933
void* arg);
932
934
inline AsyncCleanupHookHandle AddEnvironmentCleanupHook (
933
935
v8::Isolate* isolate,
934
936
void (*fun)(void * arg, void (*cb)(void *), void* cbarg),
935
937
void* arg) {
936
- return AsyncCleanupHookHandle (AddEnvironmentCleanupHookRaw (isolate, fun,
938
+ return AsyncCleanupHookHandle (AddEnvironmentCleanupHookInternal (isolate, fun,
937
939
arg));
938
940
}
939
941
940
- NODE_EXTERN void RemoveEnvironmentCleanupHookRaw (ACHHandle* holder);
942
+ /* This function is not intended to be used externally, it exists to aid in
943
+ * keeping ABI compatibility between Node and Electron. */
944
+ NODE_EXTERN void RemoveEnvironmentCleanupHookInternal (ACHHandle* holder);
941
945
inline void RemoveEnvironmentCleanupHook (AsyncCleanupHookHandle holder) {
942
- RemoveEnvironmentCleanupHookRaw (holder.get ());
946
+ RemoveEnvironmentCleanupHookInternal (holder.get ());
943
947
}
944
948
945
949
/* Returns the id of the current execution context. If the return value is
0 commit comments