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