Skip to content

Commit 3dd11d2

Browse files
committed
fixup! node-api: verify cleanup hooks order
1 parent d1d20fa commit 3dd11d2

File tree

1 file changed

+2
-0
lines changed
  • test/node-api/test_async_cleanup_hook

1 file changed

+2
-0
lines changed

test/node-api/test_async_cleanup_hook/binding.c

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ static void CreateObjectWrap(napi_env env) {
6767
}
6868

6969
static napi_value Init(napi_env env, napi_value exports) {
70+
// Reinitialize the static variable to be compatible with musl libc.
71+
cleanup_hook_count = 0;
7072
// Create object wrap before cleanup hooks.
7173
CreateObjectWrap(env);
7274

0 commit comments

Comments
 (0)