Skip to content

Mention current Wasm Worker limitations in the docs. NFC#26376

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:wasm_worker_docs
Mar 2, 2026
Merged

Mention current Wasm Worker limitations in the docs. NFC#26376
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:wasm_worker_docs

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 2, 2026

This just documents the current limitations.

See #26375

@sbc100 sbc100 requested review from dschuff, juj and kripken March 2, 2026 16:46
Some standard C++ APIs are not available under Wasm Workers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some parts of the libc++ stndard library are not available under Wasm Workers
Copy link
Member

Choose a reason for hiding this comment

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

I guess we are now in a place where these will crash rather than silently failing to synchronize, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They will simply fail to link with undefined symbols as of #26336.

We still have an issue in builds with contains both pthreads and Wasm Workers. In those builds you will still get undefined behaviour if you try to call the pthread functions from a Wasm Worker.

@sbc100 sbc100 merged commit d27a842 into emscripten-core:main Mar 2, 2026
36 checks passed
@sbc100 sbc100 deleted the wasm_worker_docs branch March 2, 2026 20:20
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