(length)
| 10002 | } |
| 10003 | |
| 10004 | function checked (length) { |
| 10005 | // Note: cannot use `length < kMaxLength()` here because that fails when |
| 10006 | // length is NaN (which is otherwise coerced to zero.) |
| 10007 | if (length >= kMaxLength()) { |
| 10008 | throw new RangeError('Attempt to allocate Buffer larger than maximum ' + |
| 10009 | 'size: 0x' + kMaxLength().toString(16) + ' bytes') |
| 10010 | } |
| 10011 | return length | 0 |
| 10012 | } |
| 10013 | |
| 10014 | function SlowBuffer (length) { |
| 10015 | if (+length != length) { // eslint-disable-line eqeqeq |
no test coverage detected