(size)
| 757 | } |
| 758 | |
| 759 | function assertSize (size) { |
| 760 | if (typeof size !== 'number') { |
| 761 | throw new TypeError('"size" argument must be a number') |
| 762 | } else if (size < 0) { |
| 763 | throw new RangeError('"size" argument must not be negative') |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | function alloc (that, size, fill, encoding) { |
| 768 | assertSize(size) |
no outgoing calls
no test coverage detected