(amount: number)
| 85 | let bytes = 0 |
| 86 | |
| 87 | const add = (amount: number) => { |
| 88 | bytes += amount |
| 89 | if (bytes > maxBytes) { |
| 90 | throw new Error('json_size_limit_reached') |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | const visit = (item: unknown): void => { |
| 95 | if (item === undefined || typeof item === 'function' || typeof item === 'symbol') { |
no outgoing calls
no test coverage detected