Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 3, 2026

This function is marked as __async: 'auto' which means it should return a promise when run in proxied mode.

Also, update the wrapSyscallFunction function to preserve the async keyword. This fix was needed when investigating using the async keyword instead. Even though it didn't end up working in this case its still a worthwhile fix.

Replaces: #26209

This function is marked as `__async: 'auto'` which means it should
return a promise when run in proxied mode on the main thread.  However
it wasn't always returning a promise.   Adding the `async` keyword
is the simplest way to ensure it always returns a promise.

Also, update the `wrapSyscallFunction` function to preserve the async
keyword.

Replaces: emscripten-core#26209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant