(cause: Event)
| 345 | port.addEventListener("message", onMessage) |
| 346 | |
| 347 | function onError(cause: Event) { |
| 348 | const exit = Exit.fail( |
| 349 | new SqlError({ reason: classifyError(cause, "SQLite WASM worker failed", "worker") }) |
| 350 | ) |
| 351 | const requests = Array.from(pending.values()) |
| 352 | pending.clear() |
| 353 | for (const resume of requests) { |
| 354 | resume(exit) |
| 355 | } |
| 356 | Effect.runFork(ScopedRef.set(connectionRef, makeConnection)) |
| 357 | } |
| 358 | if ("onerror" in worker) { |
| 359 | worker.addEventListener("error", onError) |
| 360 | } |
nothing calls this directly
no test coverage detected