MCPcopy Create free account
hub / github.com/csound/csound / init

Function init

wasm/browser/script/polyfilled-transformer.js:68–78  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

66}
67
68async function init(module) {
69 const imports = {};
70 imports.wbg = {};
71 imports.wbg.__wbindgen_throw = function (arg0, arg1) {
72 throw new Error(getStringFromWasm(arg0, arg1));
73 };
74
75 const compiled = await WebAssembly.compile(module);
76 wasm = await WebAssembly.instantiate(compiled, imports);
77 return wasm;
78}
79
80export default init;

Callers 1

lowerI64ImportsFunction · 0.70

Calls 2

getStringFromWasmFunction · 0.85
compileMethod · 0.80

Tested by

no test coverage detected