Skip to content

Commit 8e91f3e

Browse files
addaleaxBethGriggs
authored andcommitted
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 <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
1 parent 230bcaf commit 8e91f3e

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

Lines changed: 0 additions & 1 deletion
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)