dicej opened issue #11683:
As of this writing, the fused adapter compiler in
wasmtime-environgeneratesunreachableinstructions to trap in various scenarios, e.g. when a component instance tries to call an import when that is disallowed. It also generates metadata to record the precise reason for the trap and stores that infact::trampoline::Compiler::traps. However, that metadata isn't used anywhere, so at runtime the user always sees the generic "wasm \`unreachable\` instruction executed" message; the precise reason is no longer available. Consequently, we've had to temporarily fork a few spec tests which expect precise trap messages, replacing them with generic ones.
fitzgen added the wasm-proposal:component-model label to Issue #11683.
Last updated: Dec 06 2025 at 07:03 UTC