We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1d20fa commit 3dd11d2Copy full SHA for 3dd11d2
test/node-api/test_async_cleanup_hook/binding.c
@@ -67,6 +67,8 @@ static void CreateObjectWrap(napi_env env) {
67
}
68
69
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;
72
// Create object wrap before cleanup hooks.
73
CreateObjectWrap(env);
74
0 commit comments