(size)
| 180 | Object.setPrototypeOf(Buffer, Uint8Array) |
| 181 | |
| 182 | function assertSize (size) { |
| 183 | if (typeof size !== 'number') { |
| 184 | throw new TypeError('"size" argument must be of type number') |
| 185 | } else if (size < 0) { |
| 186 | throw new RangeError('The value "' + size + '" is invalid for option "size"') |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | function alloc (size, fill, encoding) { |
| 191 | assertSize(size) |
no outgoing calls
no test coverage detected
searching dependent graphs…