(data, name, max = kMaxBufferLength)
| 543 | } |
| 544 | |
| 545 | function validateMaxBufferLength(data, name, max = kMaxBufferLength) { |
| 546 | if (data.byteLength > max) { |
| 547 | throw lazyDOMException( |
| 548 | `${name} must be at most ${max} bytes`, |
| 549 | 'OperationError'); |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | /** |
| 554 | * Converts a bit length to the number of bytes needed to contain it. |
no test coverage detected
searching dependent graphs…