MCPcopy Create free account
hub / github.com/vercel/vercel / getCoreModule

Function getCoreModule

packages/python-analysis/src/wasm/load.ts:30–34  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

28}
29
30async function getCoreModule(path: string): Promise<WebAssembly.Module> {
31 const wasmPath = join(getWasmDir(), path);
32 const wasmBytes = new Uint8Array(await readFile(wasmPath));
33 return WebAssembly.compile(wasmBytes);
34}
35
36export async function importWasmModule(): Promise<RootType> {
37 if (wasmInstance) {

Callers

nothing calls this directly

Calls 3

getWasmDirFunction · 0.85
readFileFunction · 0.70
compileMethod · 0.45

Tested by

no test coverage detected