(condition: any, message?: string)
| 40 | * Modeled after the function of the same name in Node.js. |
| 41 | */ |
| 42 | export function assert(condition: any, message?: string): asserts condition { |
| 43 | if (!condition) { |
| 44 | throw new Error(message ?? "assertion failed"); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Detects the presence of ?noPoll query string parameter, which we use to disable |
no outgoing calls