rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Add some JS code to the wat2wasm test #201

Open fbitti opened 4 years ago

fbitti commented 4 years ago

When reading the tutorial and visiting wat2wasm for the first time, it was confusing that, by merely copying the wat code the output didn't change, and I suddenly broke the output when I touched the JS code. Providing a full example, even without the promise to explain the details right now:

✋ A similar PR may already be submitted! Comment: I checked but it does not exist.

For more information, see the [contributing guide][contributing]. 👫 Comment: I read the contributing guide!