Underspecification of disallowing waits on the main thread
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, wasm
- Domain
- documentation
Research direction
Start by reading the core spec and JS API spec sections covering waits, then compare their wording with the overview and the example comment about blocking on the main thread. Document that executing a wait on the main browser thread always traps, consistently with JavaScript Atomics.wait, whether or not suspension would occur.
Written by the indexing model from the issue text.
Description
I could not find anywhere in the core spec or JS API spec that says that waiting on the main browser thread traps. Even the overview does not directly address this except for a code comment in an example saying, Blocking on the main thread is not allowed, so we can't call lockMutex.
For consistency with Atomics.wait in JS, the expected behavior is that executing the wait always traps on the main thread, whether or not the thread would actually have been suspended.
- Dominant language
- WebAssembly
- Stars
- 767
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from WebAssembly/threads
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
WebAssembly/threads#253 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
WebAssembly/threads#245 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
WebAssembly/threads#240 ·
-
Branch renaming Open
Difficulty 1/5 Under an hour Newbie friendliness 20/100
WebAssembly/threads#237 ·
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
WebAssembly/threads#234 · 3 comments ·
All issues in WebAssembly/threads
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
bisq-network/support#2181 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
tutorial updates Open
Difficulty 1/5 Under an hour Newbie friendliness 80/100
sveltejs/svelte.dev#2241 ·