MCPcopy
hub / github.com/opentrace/opentrace / createExportWrapper

Function createExportWrapper

ui/public/lbug_wasm_worker.js:1866–1880  ·  view source on GitHub ↗
(name, nargs)

Source from the content-addressed store, hash-verified

1864 throw e;
1865 }
1866 function createExportWrapper(name, nargs) {
1867 return (...args) => {
1868 assert(
1869 runtimeInitialized,
1870 `native function \`${name}\` called before runtime initialization`,
1871 );
1872 var f = wasmExports[name];
1873 assert(f, `exported native function \`${name}\` not found`);
1874 assert(
1875 args.length <= nargs,
1876 `native function \`${name}\` called with ${args.length} args but expects ${nargs}`,
1877 );
1878 return f(...args);
1879 };
1880 }
1881 var wasmBinaryFile;
1882 function findWasmBinary() {
1883 return binaryDecode(

Callers 1

assignWasmExportsFunction · 0.85

Calls 2

assertFunction · 0.85
fFunction · 0.85

Tested by

no test coverage detected