(size)
| 453 | } |
| 454 | |
| 455 | function assertSize (size) { |
| 456 | if (typeof size !== 'number') { |
| 457 | throw new TypeError('"size" argument must be a number') |
| 458 | } else if (size < 0) { |
| 459 | throw new RangeError('"size" argument must not be negative') |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | function alloc (that, size, fill, encoding) { |
| 464 | assertSize(size) |
no outgoing calls
no test coverage detected