Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 58b1f33

Browse filesBrowse files
legendecastargos
authored andcommitted
node-api: add __wasm32__ guards on async works
PR-URL: #46633 Refs: #33597 Refs: nodejs/node-addon-api#1283 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4e9915e commit 58b1f33
Copy full SHA for 58b1f33

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎src/node_api.h‎

Copy file name to clipboardExpand all lines: src/node_api.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_get_buffer_info(napi_env env,
175175
void** data,
176176
size_t* length);
177177

178+
#ifndef __wasm32__
178179
// Methods to manage simple async operations
179180
NAPI_EXTERN napi_status NAPI_CDECL
180181
napi_create_async_work(napi_env env,
@@ -190,6 +191,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env,
190191
napi_async_work work);
191192
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env,
192193
napi_async_work work);
194+
#endif // __wasm32__
193195

194196
// version management
195197
NAPI_EXTERN napi_status NAPI_CDECL

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.