(path)
| 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( |