Commit b53831a 1 parent 526f6c4 commit b53831a Copy full SHA for b53831a
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ add_test("tsfn2_st" "./tsfn2/binding.c" OFF)
253
253
254
254
if ((NOT IS_WASM) OR IS_EMSCRIPTEN OR IS_WASI_THREADS)
255
255
add_test ("string_mt" "./string/binding.c;./string/test_null.c" ON )
256
+ target_compile_definitions ("string_mt" PRIVATE "NAPI_EXPERIMENTAL" )
256
257
add_test ("pool" "./pool/binding.c" ON )
257
258
add_test ("tsfn" "./tsfn/binding.c" ON )
258
259
add_test ("async_cleanup_hook" "./async_cleanup_hook/binding.c" ON )
@@ -267,6 +268,7 @@ add_test("fnfac" "./fnfac/binding.c" OFF)
267
268
add_test ("general" "./general/binding.c" OFF )
268
269
add_test ("filename" "./filename/binding.c" OFF )
269
270
add_test ("string" "./string/binding.c;./string/test_null.c" OFF )
271
+ target_compile_definitions ("string" PRIVATE "NAPI_EXPERIMENTAL" )
270
272
add_test ("property" "./property/binding.c" OFF )
271
273
add_test ("promise" "./promise/binding.c" OFF )
272
274
add_test ("object" "./object/test_null.c;./object/test_object.c" OFF )
Original file line number Diff line number Diff line change
1
+ #include <js_native_api.h>
1
2
#include <limits.h> // INT_MAX
2
3
3
4
#if !defined(__wasm__ ) || (defined(__EMSCRIPTEN__ ) || defined(__wasi__ ))
@@ -25,8 +26,6 @@ size_t strlen(const char *s)
25
26
}
26
27
#endif
27
28
28
- #define NAPI_EXPERIMENTAL
29
- #include <js_native_api.h>
30
29
#include "../common.h"
31
30
#include "../entry_point.h"
32
31
#include "test_null.h"
You can’t perform that action at this time.
0 commit comments