Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 16, 2025

No description provided.


receiving.append('\nfunction assignWasmExports(wasmExports) {')
for sym, sig in exports.items():
is_function = sig is not None
Copy link
Member

Choose a reason for hiding this comment

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

I'm not totally sure how Emscripten is currently handling tags, but at least in wasm, tags have signatures too (the return value is void and the arguments are the payload type). In C++ we only use i32-payload tags, and maybe that's fine for Emscripten, but if we want this linking method to be fully general it should handle other tag types.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This exports map only stores signatures for functions (since we don't care about tag signatures here)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(See the = None assignment above)

@sbc100 sbc100 enabled auto-merge (squash) September 16, 2025 22:28
@sbc100 sbc100 merged commit e397e08 into emscripten-core:main Sep 16, 2025
31 checks passed
@sbc100 sbc100 deleted the tag_exports branch September 16, 2025 23:57
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