mirror of
https://github.com/bytedream/litbwraw.git
synced 2025-05-09 20:25:13 +02:00
12 lines
277 B
JavaScript
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();
|