@param {WebAssembly.Module=} module
(instance, module)
| 711 | // performing other necessary setup |
| 712 | /** @param {WebAssembly.Module=} module*/ |
| 713 | function receiveInstance(instance, module) { |
| 714 | wasmExports = instance.exports; |
| 715 | |
| 716 | |
| 717 | |
| 718 | wasmMemory = wasmExports['memory']; |
| 719 | |
| 720 | assert(wasmMemory, 'memory not found in wasm exports'); |
| 721 | updateMemoryViews(); |
| 722 | |
| 723 | addOnInit(wasmExports['__wasm_call_ctors']); |
| 724 | |
| 725 | removeRunDependency('wasm-instantiate'); |
| 726 | return wasmExports; |
| 727 | } |
| 728 | // wait for the pthread pool (if any) |
| 729 | addRunDependency('wasm-instantiate'); |
| 730 |
no test coverage detected