lukewagner opened issue #12166:
According to these rules
(canon stream.read (stream) (core func))should validate without amemoryimmediate.(canon future.read (future) (core func))successfully validates, so this seems specific to streams..wasttest will be forthcoming in CM/#580
lukewagner edited issue #12166:
According to these rules
(canon stream.read (stream) (core func))should validate without amemoryimmediate.(canon future.read (future) (core func))successfully validates, so this seems specific to streams. Test added as test/async/same-component-stream-future.wast in CM repo (fails validation, should succeed).
fitzgen added the wasm-proposal:component-model-async label to Issue #12166.
dicej commented on issue #12166:
This should be addressed by https://github.com/bytecodealliance/wasm-tools/pull/2406
lukewagner commented on issue #12166:
Thanks! Happy to close this now if that's appropriate.
alexcrichton commented on issue #12166:
Oh we can take care of closing, but I'd like to leave this open until we update wasm-tools here to track that. I also think we'll want tests to ensure that wasmtime is ready for compilation/runtime if the memory option isn't present (I'd naively expect it to unwrap it today)
dicej commented on issue #12166:
I also think we'll want tests to ensure that wasmtime is ready for compilation/runtime if the memory option isn't present (I'd naively expect it to unwrap it today)
We might get lucky there since streams and futures share a lot of code, and the memory option has already been optional for futures for a while. We'll see.
alexcrichton closed issue #12166:
According to these rules
(canon stream.read (stream) (core func))should validate without amemoryimmediate.(canon future.read (future) (core func))successfully validates, so this seems specific to streams. Test added as test/async/same-component-stream-future.wast in CM repo (fails validation, should succeed).
alexcrichton commented on issue #12166:
Updated/tested in https://github.com/bytecodealliance/wasmtime/pull/12254
Last updated: Jan 09 2026 at 13:15 UTC