(instance)
| 17 | |
| 18 | return new Promise((resolve, reject) => { |
| 19 | const receiveInstance = (instance) => { |
| 20 | Module.run = (n) => instance.exports.run(n); |
| 21 | resolve(Module); |
| 22 | }; |
| 23 | |
| 24 | // Emscripten's official hook: hand instantiation to the embedder. |
| 25 | if (Module.instantiateWasm) { |
no test coverage detected