Skip to content

Commit 5b94ff4

Browse files
gabrielschulhoftargos
authored andcommitted
node-api: move NAPI_EXPERIMENTAL definition to gyp file
PR-URL: #51254 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 942e10f commit 5b94ff4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test/js-native-api/test_string/binding.gyp

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"sources": [
66
"test_string.c",
77
"test_null.c",
8-
]
9-
}
10-
]
8+
],
9+
"defines": [
10+
"NAPI_EXPERIMENTAL",
11+
],
12+
},
13+
],
1114
}

test/js-native-api/test_string/test_string.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
#include <js_native_api.h>
12
#include <limits.h> // INT_MAX
23
#include <stdlib.h>
34
#include <string.h>
4-
#define NAPI_EXPERIMENTAL
5-
#include <js_native_api.h>
65
#include "../common.h"
76
#include "../entry_point.h"
87
#include "test_null.h"

0 commit comments

Comments
 (0)