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

Function getCoreModule

packages/python-analysis/tests/wasm-test-runner.mjs:43–46  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

41 const mod = await import(join(tmpDir, 'test_component.js'));
42
43 async function getCoreModule(path) {
44 const wasmBytes = new Uint8Array(await readFile(join(tmpDir, path)));
45 return WebAssembly.compile(wasmBytes);
46 }
47
48 // Instantiate with WASI shim + real host-utils
49 const { WASIShim } = await import(

Callers

nothing calls this directly

Calls 2

readFileFunction · 0.50
compileMethod · 0.45

Tested by

no test coverage detected