MCPcopy Create free account
hub / github.com/denoland/std / unreachable

Function unreachable

assert/unreachable.ts:18–21  ·  view source on GitHub ↗
(msg?: string)

Source from the content-addressed store, hash-verified

16 * @returns Never returns, always throws.
17 */
18export function unreachable(msg?: string): never {
19 const msgSuffix = msg ? `: ${msg}` : ".";
20 throw new AssertionError(`Unreachable${msgSuffix}`);
21}

Calls

no outgoing calls

Tested by

no test coverage detected