Re:Get Started with Rust, WebAssembly, and Webpack
by ianjsikes on Tuesday June 27, 2017 @01:43PM
(#14647515)
Author here. It is my cursory understanding that the Emscripten SDK handles converting types to and from Javascript values and C-like data in the module's virtual memory. I'm not totally sure how that conversion is happening yet. I can tell you that when I pass a string when it expects an i32, it treats it as 0, so `add("foo", "bar") -> 0`
[ Parent
| on HN ]