Skip to content

Commit

Permalink
fixup! node-api: verify cleanup hooks order
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Mar 9, 2023
1 parent d1d20fa commit 3dd11d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/node-api/test_async_cleanup_hook/binding.c
Expand Up @@ -67,6 +67,8 @@ static void CreateObjectWrap(napi_env env) {
}

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

Expand Down

0 comments on commit 3dd11d2

Please sign in to comment.