(condition: boolean, message: string = "Assertion failed")
| 42 | } |
| 43 | |
| 44 | export function assert(condition: boolean, message: string = "Assertion failed"): void { |
| 45 | if (!condition) { |
| 46 | throw Error(message); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | export function panic(message: string): never { |
| 51 | throw Error(message); |
no outgoing calls
no test coverage detected
searching dependent graphs…