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 <apapirovski@mac.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
gabrielschulhof authored and richardlau committed Mar 25, 2024
1 parent 834bbfd commit 0fb9843
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 0fb9843

Please sign in to comment.