2024-09-29 18:28:40 +02:00

12 lines
277 B
JavaScript

async function main() {
const wasm = await import('./target/wasm32-unknown-emscripten/debug/example-binary.js');
const module = {
print: (str) => console.log(str),
printErr: (str) => console.error(str),
}
await wasm.default(module);
}
main();