We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba508d commit 0f5526fCopy full SHA for 0f5526f
test/js-native-api/test_string/binding.gyp
@@ -5,7 +5,10 @@
5
"sources": [
6
"test_string.c",
7
"test_null.c",
8
- ]
9
- }
10
+ ],
+ "defines": [
+ "NAPI_EXPERIMENTAL",
11
12
+ },
13
14
}
test/js-native-api/test_string/test_string.c
@@ -1,8 +1,7 @@
1
+#include <js_native_api.h>
2
#include <limits.h> // INT_MAX
3
#include <stdlib.h>
4
#include <string.h>
-#define NAPI_EXPERIMENTAL
-#include <js_native_api.h>
#include "../common.h"
#include "../entry_point.h"
#include "test_null.h"
0 commit comments