(length)
| 295 | } |
| 296 | } |
| 297 | function checked(length) { |
| 298 | // Note: cannot use `length < K_MAX_LENGTH` here because that fails when |
| 299 | // length is NaN (which is otherwise coerced to zero.) |
| 300 | if (length >= K_MAX_LENGTH) { |
| 301 | throw new RangeError('Attempt to allocate Buffer larger than maximum ' + 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes'); |
| 302 | } |
| 303 | return length | 0; |
| 304 | } |
| 305 | function SlowBuffer(length) { |
| 306 | if (+length != length) { |
| 307 | // eslint-disable-line eqeqeq |
no outgoing calls
no test coverage detected
searching dependent graphs…