(size)
| 112965 | Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype); |
| 112966 | Object.setPrototypeOf(Buffer, Uint8Array); |
| 112967 | function assertSize(size) { |
| 112968 | if (typeof size !== "number") throw new TypeError('"size" argument must be of type number'); |
| 112969 | else if (size < 0) throw new RangeError('The value "' + size + '" is invalid for option "size"'); |
| 112970 | } |
| 112971 | function alloc(size, fill, encoding) { |
| 112972 | assertSize(size); |
| 112973 | if (size <= 0) return createBuffer(size); |
no outgoing calls
no test coverage detected