Skip to content

Commit dc28ba5

Browse files
committed
fix typedarray tests
1 parent 5ff4dd4 commit dc28ba5

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/js_native_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ node_api_post_finalizer(node_api_basic_env env,
548548
void* finalize_data,
549549
void* finalize_hint);
550550

551-
#define NODE_API_EXPERIMENTAL_HAS_FLOAT16_ARRAY
552551
#endif // NAPI_EXPERIMENTAL
553552

554553
#if NAPI_VERSION >= 6

src/js_native_api_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ typedef enum {
106106
napi_bigint64_array,
107107
napi_biguint64_array,
108108
#ifdef NAPI_EXPERIMENTAL
109+
#define NODE_API_EXPERIMENTAL_HAS_FLOAT16_ARRAY
109110
napi_float16_array,
110111
#endif // NAPI_EXPERIMENTAL
111112
} napi_typedarray_type;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"targets": [
33
{
44
"target_name": "test_typedarray",
5+
"defines": [ "NAPI_EXPERIMENTAL" ],
56
"sources": [
67
"test_typedarray.c"
78
]

0 commit comments

Comments
 (0)