MCPcopy
hub / github.com/webpack/webpack / receiveInstance

Function receiveInstance

examples/wasm-emscripten/emscripten-module.js:19–22  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

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) {

Callers 1

instantiateWasmFunction · 0.85

Calls 2

resolveFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected