Stream: git-wasmtime

Topic: wasmtime / Issue #849 Not writing results in callable has...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2020 at 19:21):

alexcrichton closed Issue #849:

wasmtime::Callable's results mutable slice is initialized with the null AnyRef. If the callable implementation doesn't actually write the results it will stay AnyRef's and wasmtime will actually try to write them in memory, which (luckily) results into this error message:

thread 'main' panicked at 'not yet implemented: Val::write_value_to', /Users/pepyakin/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-0.9.0/src/values.rs:93:18

which in turn leads to #848 at the moment of writing.

However, I am wondering if relying on null AnyRef is actually a good idea in the first place.


Last updated: Dec 23 2024 at 13:07 UTC