(length)
| 602 | } |
| 603 | |
| 604 | function checked (length) { |
| 605 | // Note: cannot use `length < kMaxLength()` here because that fails when |
| 606 | // length is NaN (which is otherwise coerced to zero.) |
| 607 | if (length >= kMaxLength()) { |
| 608 | throw new RangeError('Attempt to allocate Buffer larger than maximum ' + |
| 609 | 'size: 0x' + kMaxLength().toString(16) + ' bytes') |
| 610 | } |
| 611 | return length | 0 |
| 612 | } |
| 613 | |
| 614 | function SlowBuffer (length) { |
| 615 | if (+length != length) { // eslint-disable-line eqeqeq |
no test coverage detected