[stack-switching] Support the `resume_throw_ref` instruction by dhil · Pull Request #2423 · bytecodealliance/wasm-tools

@dhil

This patch adds support for the `resume_throw_ref` instruction, which
is similar to the `resume_throw` instruction, but rather than
injecting a fresh exception into the continuation, the
`resume_throw_ref` instruction injects an exception reference into the
continuation.

Note: the new instruction is, at the time of writing, assigned the
opcode `0xE5` conflicting with the `switch` instruction, which has
been assigned `0xE6` as its opcode instead (c.f. [the work-in-progress
specification](https://github.com/WebAssembly/stack-switching/blob/main/proposals/stack-switching/Explainer.md#binary-format)).

alexcrichton

Merged via the queue into bytecodealliance:main with commit 7e9cf05

Jan 22, 2026

35 checks passed

@dhil dhil deleted the resume-throw-ref branch

January 22, 2026 16:09