ColonelToad opened PR #15235 from ColonelToad:docs/valtype-kind-limits to bytecodealliance:main:
wasm_valtype_kindaborts forv128and for reference types that
wasm_valkind_tcannot express. The documentation indoc-wasm.hmentioned
the abort but never said what to use instead, which is what #15088 ran into.This documents
wasmtime_valtype_t/wasmtime_valtype_newas the supported
path for those types in bothdoc-wasm.handwasmtime/types/val.h. It also
fixes the abort messages, which previously said that support forv128
was not implemented.v128is implemented; it just cannot be represented
bywasm_valkind_t.I verified this by building the C API and running the reproducer from the
issue; it now prints guidance on which API to use before aborting.Closes #15088
ColonelToad removed the review request for wasmtime-core-reviewers from PR #15235.
ColonelToad requested dicej for a review on PR #15235.
ColonelToad requested wasmtime-core-reviewers for a review on PR #15235.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton has enabled auto merge for PR #15235.
alexcrichton added PR #15235 Clarify that wasm_valtype_kind cannot represent v128 to the merge queue.
:check: alexcrichton merged PR #15235.
alexcrichton removed PR #15235 Clarify that wasm_valtype_kind cannot represent v128 from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC