(size)
| 274 | Buffer.__proto__ = Uint8Array |
| 275 | |
| 276 | function assertSize (size) { |
| 277 | if (typeof size !== 'number') { |
| 278 | throw new TypeError('"size" argument must be of type number') |
| 279 | } else if (size < 0) { |
| 280 | throw new RangeError('"size" argument must not be negative') |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | function alloc (size, fill, encoding) { |
| 285 | assertSize(size) |
no outgoing calls
no test coverage detected