Skip to content

Commit 429529c

Browse files
authored
remove obsolete trap from waitable-set.wait (#11795)
This was left over from an earlier version of the spec, and I forgot to remove it. I've updated the `tests/component-model` submodule to pull in the new `wait-during-callback.wast` test to exercise this scenario. Fixes #11781 Signed-off-by: Joel Dice <[email protected]>
1 parent e05fc53 commit 429529c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

crates/wasmtime/src/runtime/component/concurrent.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,10 +2855,6 @@ impl Instance {
28552855
let state = self.concurrent_state_mut(store);
28562856
let task = state.get_mut(guest_task)?;
28572857

2858-
if wait && task.callback.is_some() {
2859-
bail!("cannot call `task.wait` from async-lifted export with callback");
2860-
}
2861-
28622858
// If we're waiting, and there are no events immediately available,
28632859
// suspend the fiber until that changes.
28642860
if wait {

0 commit comments

Comments
 (0)