Skip to content

[JSPI] Do not automatically wrap async library functions. #24550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 16, 2025

Conversation

brendandahl
Copy link
Collaborator

@brendandahl brendandahl commented Jun 11, 2025

In a number of places library functions (e.g. emscripten_async_wget_data) use an async JS functions, but they do not actually want to use JSPI wrappers. Change it so functions must explicitly use foo__async: true to enable JSPI wrappers.

Fixes #20289

@brendandahl brendandahl requested review from sbc100 and RReverser June 11, 2025 20:18
Copy link
Collaborator

@RReverser RReverser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

In a number of places (e.g. `emscripten_async_wget_data`) library functions
use an `async` JS functions, but they do not actually want to use JSPI
wrappers. Change it so functions must explicitly use `foo__async: true` to
enable JSPI wrappers.

Fixes emscripten-core#20289
@brendandahl brendandahl merged commit 8cd28a2 into emscripten-core:main Jun 16, 2025
28 of 30 checks passed
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.

Async JS library funcs should not be marked for Asyncify transform
3 participants