Skip to content

Commit

Permalink
benchmark: fix napi/ref addon
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed May 31, 2024
1 parent b122f3e commit e06d24a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/napi/ref/addon.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <stdlib.h>
#define NAPI_EXPERIMENTAL
#include <node_api.h>

#define NAPI_CALL(env, call) \
Expand Down Expand Up @@ -35,7 +34,7 @@ SetCount(napi_env env, napi_callback_info info) {
}

static void
IncrementCounter(napi_env env, void* data, void* hint) {
IncrementCounter(node_api_nogc_env env, void* data, void* hint) {
size_t* count = data;
(*count) = (*count) + 1;
}
Expand Down

0 comments on commit e06d24a

Please sign in to comment.