4 ms·
The WebAssembly reference interpreter [0] has a JS library that lets you do this. let wast = require("./wast.js"); let binary = wast.WebAssemblyText.en
by tyushk 2y ago
The WebAssembly reference interpreter [0] has a JS library that lets you do this.
let wast = require("./wast.js");
let binary = wast.WebAssemblyText.encode("(module)");
[0] https://github.com/WebAssembly/spec/tree/main/interpreter#javascript-library https://github.com/WebAssembly/spec/tree/main/interpreter#ja...