MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / receiveInstance

Function receiveInstance

website/public/wasm/web-tree-sitter.js:1773–1786  ·  view source on GitHub ↗
(instance2, module2)

Source from the content-addressed store, hash-verified

1771 __name(getWasmImports, "getWasmImports");
1772 async function createWasm() {
1773 function receiveInstance(instance2, module2) {
1774 wasmExports = instance2.exports;
1775 wasmExports = relocateExports(wasmExports, 1024);
1776 var metadata2 = getDylinkMetadata(module2);
1777 if (metadata2.neededDynlibs) {
1778 dynamicLibraries = metadata2.neededDynlibs.concat(dynamicLibraries);
1779 }
1780 mergeLibSymbols(wasmExports, "main");
1781 LDSO.init();
1782 loadDylibs();
1783 __RELOC_FUNCS__.push(wasmExports["__wasm_apply_data_relocs"]);
1784 assignWasmExports(wasmExports);
1785 return wasmExports;
1786 }
1787 __name(receiveInstance, "receiveInstance");
1788 function receiveInstantiationResult(result2) {
1789 return receiveInstance(result2["instance"], result2["module"]);

Callers 2

createWasmFunction · 0.85

Calls 3

assignWasmExportsFunction · 0.85
pushMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected