We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b6fc9 commit 1e2bc2cCopy full SHA for 1e2bc2c
benchmark/napi/ref/addon.c
@@ -1,6 +1,5 @@
1
-#include <stdlib.h>
2
-#define NAPI_EXPERIMENTAL
3
#include <node_api.h>
+#include <stdlib.h>
4
5
#define NAPI_CALL(env, call) \
6
do { \
@@ -34,8 +33,7 @@ SetCount(napi_env env, napi_callback_info info) {
34
33
return NULL;
35
}
36
37
-static void
38
-IncrementCounter(napi_env env, void* data, void* hint) {
+static void IncrementCounter(node_api_nogc_env env, void* data, void* hint) {
39
size_t* count = data;
40
(*count) = (*count) + 1;
41
0 commit comments