mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 03:24:54 +00:00
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
import { parentPort } from "node:worker_threads"
|
|
|
|
// Stands in for a photon worker whose wasm panics on its first request.
|
|
const port = parentPort
|
|
if (port) {
|
|
port.on("message", () => {
|
|
throw new Error("unreachable executed")
|
|
})
|
|
port.postMessage({ _tag: "Ready" })
|
|
}
|