(name: string, value: number | undefined, defaultValue: number)
| 907 | const defaultMaxElementSize = 16 * 1024 * 1024 |
| 908 | |
| 909 | const checkLimit = (name: string, value: number | undefined, defaultValue: number): number => { |
| 910 | const limit = value ?? defaultValue |
| 911 | if (!(limit > 0)) { |
| 912 | throw new Error(`Xml: ${name} must be positive, got ${limit}`) |
| 913 | } |
| 914 | return limit |
| 915 | } |
| 916 | |
| 917 | // The per-run state of a channel. `push` and `end` add output to `out`, and |
| 918 | // throw `XmlError`s. |
no outgoing calls
no test coverage detected