Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 24, 2025

The __async decorator marks JS function as async when they are imported into Wasm. It basically adds functions to ASYNCIFY_IMPORTS.

It makes not sense to apply this decorator to a JS-only symbol.

Copy link
Collaborator

@brendandahl brendandahl left a comment

Choose a reason for hiding this comment

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

Strange, I wonder why I added that.

The `__async` decorator marks JS function as async when they are
imported into Wasm.  It basically adds functions to `ASYNCIFY_IMPORTS`.

It makes not sense to apply this decorator to a JS-only symbol.
@sbc100 sbc100 enabled auto-merge (squash) December 30, 2025 12:52
@sbc100 sbc100 merged commit dfa6966 into emscripten-core:main Dec 30, 2025
35 checks passed
@sbc100 sbc100 deleted the __async branch December 30, 2025 13:06
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.

2 participants