Skip to content

Add test for subtask.cancel async in test/async/trap-if-sync-and-waitable-set.wast - #715

Merged
lukewagner merged 1 commit into
mainfrom
add-test
Aug 29, 2026
Merged

Add test for subtask.cancel async in test/async/trap-if-sync-and-waitable-set.wast#715
lukewagner merged 1 commit into
mainfrom
add-test

Conversation

@lukewagner

Copy link
Copy Markdown
Member

This tests a new condition added in #705 and should've been in that PR.

@lukewagner
lukewagner merged commit a10baf4 into main Aug 29, 2026
2 checks passed
dicej added a commit to dicej/wasmtime that referenced this pull request Aug 31, 2026
- Per WebAssembly/component-model#715, trap if
  `subtask.cancel` is called for a subtask that's in a waitable set regardless
  of whether it's called sync or async.

- Per WebAssembly/component-model#687, trap if a thread
  tries to promote or resume itself.

Also, add a `Debug` impl for `GuestThreadState` for future debugging convenience.
pull Bot pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 1, 2026
- Per WebAssembly/component-model#715, trap if
  `subtask.cancel` is called for a subtask that's in a waitable set regardless
  of whether it's called sync or async.

- Per WebAssembly/component-model#687, trap if a thread
  tries to promote or resume itself.

Also, add a `Debug` impl for `GuestThreadState` for future debugging convenience.
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