Skip to content

Commit 0fb9843

Browse files
gabrielschulhofrichardlau
authored andcommitted
node-api: move NAPI_EXPERIMENTAL definition to gyp file
PR-URL: #51254 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Vladimir Morozov <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 834bbfd commit 0fb9843

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)