diff --git a/src/node_api.h b/src/node_api.h index 2e3a816a6c5024..caf987dbd8dd8b 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -175,6 +175,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_get_buffer_info(napi_env env, void** data, size_t* length); +#ifndef __wasm32__ // Methods to manage simple async operations NAPI_EXTERN napi_status NAPI_CDECL napi_create_async_work(napi_env env, @@ -190,6 +191,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env, napi_async_work work); NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env, napi_async_work work); +#endif // __wasm32__ // version management NAPI_EXTERN napi_status NAPI_CDECL