(length)
| 320 | } |
| 321 | |
| 322 | function checked (length) { |
| 323 | // Note: cannot use `length < K_MAX_LENGTH` here because that fails when |
| 324 | // length is NaN (which is otherwise coerced to zero.) |
| 325 | if (length >= K_MAX_LENGTH) { |
| 326 | throw new RangeError('Attempt to allocate Buffer larger than maximum ' + |
| 327 | 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') |
| 328 | } |
| 329 | return length | 0 |
| 330 | } |
| 331 | |
| 332 | function SlowBuffer (length) { |
| 333 | if (+length != length) { // eslint-disable-line eqeqeq |
no test coverage detected
searching dependent graphs…