MCPcopy Create free account
hub / github.com/Effect-TS/effect / onUncaught

Function onUncaught

packages/platform/node/test/NodeHttpServer.test.ts:842–842  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

840
841 const uncaught: Array<unknown> = []
842 const onUncaught = (error: unknown) => uncaught.push(error)
843 process.on("uncaughtException", onUncaught)
844 yield* Effect.addFinalizer(() => Effect.sync(() => process.off("uncaughtException", onUncaught)))
845

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected