lukewagner opened issue #13963:
For example, this WAST test succeeds when I think it should fail:
(assert_malformed (component quote "(import \"f\" (func $f))" ) "nothing wrong")
lukewagner added the bug label to Issue #13963.
alexcrichton commented on issue #13963:
I'd expect that component to expand to
(component (import "f" (func $f)))which I thought was valid, but which part are you expecting to be invalid?
lukewagner commented on issue #13963:
Yes, agreed that component should be valid, but then I think the overall WAST test should fail (b/c it says
assert_malformed), and atm it seems to silently succeed.
alexcrichton commented on issue #13963:
Ah, yes! Should be fixed in https://github.com/bytecodealliance/wasmtime/pull/14001
FWIW
assert_malformedvsassert_invalidare more principled in the wasm-tools crate itself, right now in Wasmtime the two aren't separated out. In that sense component-model tests might want to run bothwasm-tools wastandwasmtime wast. Not a great situation per-se though and we should probably just bringwasmtime wastup-to-par withwasm-tools wast
alexcrichton closed issue #13963:
For example, this WAST test succeeds when I think it should fail:
(assert_malformed (component quote "(import \"f\" (func $f))" ) "nothing wrong")
Last updated: Jul 29 2026 at 05:03 UTC