(size: number)
| 529 | } |
| 530 | |
| 531 | checkSize(size: number): void { |
| 532 | if (size > this.config.maxElementSize) { |
| 533 | throw this.fail("Limit", `${this.subject()} exceeds maxElementSize of ${this.config.maxElementSize}`, this.start) |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | failDepth(): never { |
| 538 | throw this.fail("Limit", `${this.subject()} exceeds maxDepth of ${this.config.maxDepth}`, this.start) |