Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
node-api: add warning for NAPI_EXPERIMENTAL
  • Loading branch information
miguelmarcondesf committed Jun 6, 2025
commit 3422b6231aa3ec45caa752894318a27858275d99
6 changes: 6 additions & 0 deletions src/js_native_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
#endif
#endif

#if defined(NAPI_EXPERIMENTAL) && \
!defined(NODE_API_EXPERIMENTAL_NO_WARNING) && \
!defined(NODE_WANT_INTERNALS)
#warning "NAPI_EXPERIMENTAL is enabled. Experimental features may be unstable."
#endif

#include "js_native_api_types.h"

// If you need __declspec(dllimport), either include <node_api.h> instead, or
Expand Down