Files
bun-src/test/napi/napi-app/bundled_napi_headers_experimental.c
2026-08-27 21:09:14 +00:00

13 lines
347 B
C

// cc() (TinyCC) treats #warning as a hard error, so the bundled header must
// compile cleanly with NAPI_EXPERIMENTAL defined.
#define NAPI_EXPERIMENTAL
#define NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT
#include <node_api.h>
napi_value passthrough(napi_env env, napi_value v) {
(void)env;
node_api_basic_env be = env;
(void)be;
return v;
}