Burger.

I'm trying some Wasm! I needed to test a few things:

So I made this Wasm "compiler" where you write out the data in hexadecimal. It ignores every character that isn't 0-9 or a-f (case insensitive), so you can use some spacing. I also made it so you can put comments in regular parentheses ().

The header bytes (magic and version) are automatically added.

If it compiles successfully, it'll tell you what the exported functions are. Otherwise you'll need to check the console etc.

To call the function, you'd call wasm_module.instance.exports.{your function} in the console.



Result here