Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/assert/unreachable.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
File
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.import { AssertionError } from "./assertion_error.ts";
/** Use this to assert unreachable code. */export function unreachable(): never { throw new AssertionError("unreachable");}