jrandolf edited PR #14843.
github-actions[bot] added the label wasmtime:api on PR #14843.
jrandolf updated PR #14843.
jrandolf updated PR #14843.
jrandolf updated PR #14843.
jrandolf edited PR #14843:
This is a stopgap for #14811 until wasm-wave can represent maps (bytecodealliance/wasm-tools#2777).
wasmtime run --invokepanics when the invoked function returns a value WAVE can't represent, such as a map (or a resource, future, stream or error context), because it prints results through wasm-wave'sDisplayValue, which returns afmt::Errorfor them.
--invokenow prints results throughVal::to_wave, which returns an error for these values since bytecodealliance/wasm-tools#2778, so it reports that error and exits with a failure. Otherwise it prints results exactly as before. The error messages built inensure_type_valno longer go throughDisplayValueeither.bytecodealliance/wasm-tools#2778 is merged but not released yet. Until it is, the last commit points the wasm-tools crates at its branch so CI can build this. That commit gets dropped before this lands.
Passing a map argument to
--invokealready fails with an error rather than a panic, but the message (unsupported type <<UNSUPPORTED>>) comes from wasm-wave's parser, so improving it needs a change there.
jrandolf updated PR #14843.
Last updated: Oct 31 2026 at 23:03 UTC