MCPcopy Create free account
hub / github.com/eva-engine/eva.js / receiveInstance

Function receiveInstance

examples/public/basis/basis_transcoder.js:325–330  ·  view source on GitHub ↗
(instance, module)

Source from the content-addressed store, hash-verified

323 const info = { a: asmLibraryArg };
324
325 function receiveInstance(instance, module)
326 {
327 const exports = instance.exports;
328
329 Module.asm = exports; removeRunDependency('wasm-instantiate');
330 }addRunDependency('wasm-instantiate'); function receiveInstantiatedSource(output) { receiveInstance(output.instance); } function instantiateArrayBuffer(receiver) { return getBinaryPromise().then(function (binary) { return WebAssembly.instantiate(binary, info); }).then(receiver, function (reason) { err(`failed to asynchronously prepare wasm: ${reason}`); abort(reason); }); } function instantiateAsync()
331 {
332 if (!wasmBinary && typeof WebAssembly.instantiateStreaming === 'function' && !isDataURI(wasmBinaryFile) && typeof fetch === 'function')
333 {

Callers 1

Calls 1

removeRunDependencyFunction · 0.70

Tested by

no test coverage detected