(value: unknown, label: string)
| 635 | } |
| 636 | |
| 637 | function controlSequence(value: unknown, label: string): number { |
| 638 | const sequence = positiveCount(value, label); |
| 639 | if (sequence > RUNTIME_RESOURCE_MAX_CONTROL_SEQUENCE) { |
| 640 | throw invalidProtocolFrame(`Invalid ${label}`); |
| 641 | } |
| 642 | return sequence; |
| 643 | } |
no test coverage detected