Files
bun.sh/integration/macro/assert.tsx
2022-01-05 13:12:11 -08:00

5 lines
142 B
TypeScript

// This logs the result at build time
export function unreachable(call) {
throw new Error(call.arguments[0].toString() || "unreachable");
}