return from(arg, encodingOrOffset, length)
}
-Buffer.prototype.__proto__ = Uint8Array.prototype
-Buffer.__proto__ = Uint8Array
-
// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
if (typeof Symbol !== 'undefined' && Symbol.species &&
Buffer[Symbol.species] === Buffer) {
return from(value, encodingOrOffset, length)
}
+Buffer.prototype.__proto__ = Uint8Array.prototype
+// Assign Uint8Array as proto AFTER setting Buffer.from
+Buffer.__proto__ = Uint8Array
+
function assertSize (size) {
if (typeof size !== 'number') {
throw new TypeError('"size" argument must be a number')