Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c2e6a8f

Browse filesBrowse files
targosrichardlau
authored andcommitted
benchmark: fix napi/ref addon
Refs: #53212 (comment) PR-URL: #53233 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent e578c0b commit c2e6a8f
Copy full SHA for c2e6a8f

1 file changed

+2-4Lines changed: 2 additions & 4 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/napi/ref/addon.c‎

Copy file name to clipboardExpand all lines: benchmark/napi/ref/addon.c
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include <stdlib.h>
2-
#define NAPI_EXPERIMENTAL
31
#include <node_api.h>
2+
#include <stdlib.h>
43

54
#define NAPI_CALL(env, call) \
65
do { \
@@ -34,8 +33,7 @@ SetCount(napi_env env, napi_callback_info info) {
3433
return NULL;
3534
}
3635

37-
static void
38-
IncrementCounter(napi_env env, void* data, void* hint) {
36+
static void IncrementCounter(node_api_nogc_env env, void* data, void* hint) {
3937
size_t* count = data;
4038
(*count) = (*count) + 1;
4139
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.