Closed cwhakes closed 5 years ago
Thanks! Closing in favor of https://github.com/mmastrac/rust-ctor/issues/14 which is the dependency where this would need to be implemented.
@dtolnay Shouldn't this be re-opened since you've closed https://github.com/mmastrac/rust-ctor/issues/14 ?
I'm facing this issue in a Leptos app.
Example: https://github.com/cwhakes/typetag-test
When using
wasm-bindgen
v0.2.40, deserializing trait objects fails, while similar code on native targets (in my case Windows) succeeds. Serializing seems to work well.This creates 3 alerts. The first should be equal to the third, minus a
Result
wrapper.Data(MyType("foo"))
{"type":"MyType","value":"foo"}
Err(Error("unknown variant `MyType`, there are no variants", line: 1, column: 16))