Skip to content

Commit e7d3419

Browse files
committed
benchmark: fix napi/ref addon
Refs: #53212 (comment)
1 parent 88d0701 commit e7d3419

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

benchmark/napi/ref/addon.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <stdlib.h>
2-
#define NAPI_EXPERIMENTAL
32
#include <node_api.h>
43

54
#define NAPI_CALL(env, call) \
@@ -35,7 +34,7 @@ SetCount(napi_env env, napi_callback_info info) {
3534
}
3635

3736
static void
38-
IncrementCounter(napi_env env, void* data, void* hint) {
37+
IncrementCounter(node_api_nogc_env env, void* data, void* hint) {
3938
size_t* count = data;
4039
(*count) = (*count) + 1;
4140
}

0 commit comments

Comments
 (0)