Skip to content

Commit 0f5526f

Browse files
node-api: move NAPI_EXPERIMENTAL definition to gyp file
1 parent 1ba508d commit 0f5526f

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)