dhil opened PR #13996 from dhil:continuation-tests to bytecodealliance:main:
This patch imports the testsuite from wasmfx/wasmfxtime for stack switching.
Depends on #11717.
dhil requested cfallin for a review on PR #13996.
dhil requested wasmtime-compiler-reviewers for a review on PR #13996.
dhil requested wasmtime-core-reviewers for a review on PR #13996.
dhil converted PR #13996 [stack-switching] Tests to a draft.
github-actions[bot] added the label wasmtime:api on PR #13996.
dhil updated PR #13996.
dhil updated PR #13996.
dhil has marked PR #13996 as ready for review.
:memo: dhil submitted PR review.
:speech_balloon: dhil created PR review comment:
This is the interesting change introduced by this patch. It implements the WAST directive
assert_suspension. I am not sure this is the best way to implement it.
:memo: cfallin submitted PR review.
:speech_balloon: cfallin created PR review comment:
Rather than match on an error message, could we try to downcast the trap (see e.g. the
assert_exceptioncase above)?I see at least
UnhandledTag; a quick skim didn't find the suspend-outside-cont but I guess you'd know what kind of trap that raises (and we can add a variant if it is not distinguished currently).
dhil updated PR #13996.
dhil updated PR #13996.
:memo: dhil submitted PR review.
:speech_balloon: dhil created PR review comment:
Fixed in https://github.com/bytecodealliance/wasmtime/pull/13996/commits/73b99fcffa49462d16724e2fdd98b8c4a049ba92. Thanks!
I realised that we map unhandled suspension and suspension outside a continuation to the same trap
UnhandledTag. I think the difference only manifests in the spec interpreter's testsuite, meaning I think we can freely ignore the distinction here.
:speech_balloon: dhil edited PR review comment.
dhil updated PR #13996.
dhil updated PR #13996.
dhil updated PR #13996.
dhil edited PR #13996:
This patch imports the testsuite from wasmfx/wasmfxtime for stack switching.
~Depends on #11717~.
:thumbs_up: cfallin submitted PR review:
Looks good with the more precise matching -- thanks!
cfallin added PR #13996 [stack-switching] Tests to the merge queue.
:check: cfallin merged PR #13996.
cfallin removed PR #13996 [stack-switching] Tests from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC