IFClite TypeScript API
    Preparing search index...

    Function buildBridge

    • Build the bim API object inside the QuickJS VM.

      Returns the captured log entries from console.* calls, plus resetLogs — the caller must invoke it at the start of every run, because the capture budget is scoped to one run (see buildConsole) — plus hostWork, the queue of in-flight host promises the caller must settle before reading a run's result (#2305, see bridge-async.ts).

      Parameters

      Returns {
          dispose: () => void;
          hostWork: HostWorkQueue;
          logs: LogEntry[];
          resetLogs: () => void;
      }