(length)
| 409 | } |
| 410 | |
| 411 | function checked (length) { |
| 412 | // Note: cannot use `length < K_MAX_LENGTH` here because that fails when |
| 413 | // length is NaN (which is otherwise coerced to zero.) |
| 414 | if (length >= K_MAX_LENGTH) { |
| 415 | throw new RangeError('Attempt to allocate Buffer larger than maximum ' + |
| 416 | 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') |
| 417 | } |
| 418 | return length | 0 |
| 419 | } |
| 420 | |
| 421 | function SlowBuffer (length) { |
| 422 | if (+length != length) { // eslint-disable-line eqeqeq |
no test coverage detected
searching dependent graphs…