Skip to content

Commit e23f7ee

Browse files
committed
test: fix test_worker_terminate_finalization
The test was missing an initialization of the global `ref` variable because there was also an unused local one, leading to failures like the one seen in #34625. PR-URL: #34726 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ricky Zhou <[email protected]>
1 parent 0da5ac8 commit e23f7ee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/node-api/test_worker_terminate_finalization/test_worker_terminate_finalization.c

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ napi_value Test(napi_env env, napi_callback_info info) {
2222
size_t argc = 1;
2323
napi_value argv[1];
2424
napi_value result;
25-
napi_ref ref;
2625
void* bufferData = malloc(BUFFER_SIZE);
2726

2827
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, NULL, NULL));

0 commit comments

Comments
 (0)