Skip to content

[threads][test][js-api] Add tests for wait/notify#250

Open
backes wants to merge 1 commit intoWebAssembly:mainfrom
backes:add-wait-notify-tests
Open

[threads][test][js-api] Add tests for wait/notify#250
backes wants to merge 1 commit intoWebAssembly:mainfrom
backes:add-wait-notify-tests

Conversation

@backes
Copy link
Member

@backes backes commented Mar 17, 2026

Add JS API tests for Atomics.wait and Atomics.notify on WebAssembly.Memory.

  • On shared memory: Atomics.notify should return the number of notified waiters, and Atomics.wait should return the appropriate wait status.
  • On unshared memory: Atomics.notify should return 0, while Atomics.wait should trap (throwing a WebAssembly.RuntimeError).

Add JS API tests for Atomics.wait and Atomics.notify on WebAssembly.Memory.
- On shared memory: Atomics.notify should return the number of notified
  waiters, and Atomics.wait should return the appropriate wait status.
- On unshared memory: Atomics.notify should return 0, while Atomics.wait
  should trap (throwing a WebAssembly.RuntimeError).
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.

1 participant