wasm-posix-host
    Preparing search index...

    Function resolveForNode

    • Materialise spec for the Node host. Image mounts get a fresh, cryptographically verified MemoryFileSystem; scratch mounts get a HostFileSystem rooted at <sessionDir><spec.path> (the directory is created with mkdirSync({recursive:true}) so safePath is happy on first access).

      Asynchronous input → output function with no global state.

      Parameters

      • spec: MountSpec[]
      • rootfsImage: Uint8Array
      • sessionDir: string

      Returns Promise<MountConfig[]>