Skip to content

Commit

Permalink
node-api: move NAPI_EXPERIMENTAL definition to gyp file
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gabrielschulhof authored and targos committed Feb 15, 2024
1 parent 942e10f commit 5b94ff4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions test/js-native-api/test_string/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"sources": [
"test_string.c",
"test_null.c",
]
}
]
],
"defines": [
"NAPI_EXPERIMENTAL",
],
},
],
}
3 changes: 1 addition & 2 deletions test/js-native-api/test_string/test_string.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <js_native_api.h>
#include <limits.h> // INT_MAX
#include <stdlib.h>
#include <string.h>
#define NAPI_EXPERIMENTAL
#include <js_native_api.h>
#include "../common.h"
#include "../entry_point.h"
#include "test_null.h"
Expand Down

0 comments on commit 5b94ff4

Please sign in to comment.