(imports, receiveInstance)
| 8 | createModule({ |
| 9 | onLog: (value) => console.log("wasm logged:", value), |
| 10 | instantiateWasm(imports, receiveInstance) { |
| 11 | WebAssembly.instantiate(programWasm, imports).then((instance) => |
| 12 | receiveInstance(instance, programWasm) |
| 13 | ); |
| 14 | return {}; // signal that instantiation happens asynchronously |
| 15 | } |
| 16 | }).then((Module) => { |
| 17 | console.log("run(10) =", Module.run(10)); |
| 18 | }); |
nothing calls this directly
no test coverage detected