(condition: boolean, message = 'unexpected state')
| 30 | } |
| 31 | |
| 32 | export function assert(condition: boolean, message = 'unexpected state'): asserts condition { |
| 33 | if (!condition) { |
| 34 | throw new BugIndicatingError(`Assertion Failed: ${message}`); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Like assert, but doesn't throw. |
no outgoing calls
no test coverage detected