From e06d24acc39c523841ece8f7a807fb846a8d7ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 31 May 2024 20:20:43 +0200 Subject: [PATCH] benchmark: fix napi/ref addon Refs: https://github.com/nodejs/node/pull/53212#issuecomment-2142566866 --- benchmark/napi/ref/addon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchmark/napi/ref/addon.c b/benchmark/napi/ref/addon.c index 3fb8de603d3ced..a7d29bcff1f2a0 100644 --- a/benchmark/napi/ref/addon.c +++ b/benchmark/napi/ref/addon.c @@ -1,5 +1,4 @@ #include -#define NAPI_EXPERIMENTAL #include #define NAPI_CALL(env, call) \ @@ -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; }