-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 8.1.3 #306
Node 8.1.3 #306
Conversation
function _uint8ArrayToBuffer(chunk) { | ||
return Buffer.from(chunk); | ||
} | ||
function _isUint8Array(obj) { | ||
return Object.prototype.toString.call(obj) === '[object Uint8Array]' || Buffer.isBuffer(obj); | ||
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to check: this is meant to always pass in environments that don't have global.Uint8Array
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g. resolves to obj instanceOf Function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes exactly.
@@ -660,4 +661,4 @@ Writable.prototype._undestroy = destroyImpl.undestroy; | |||
Writable.prototype._destroy = function (err, cb) { | |||
this.end(); | |||
cb(err); | |||
}; | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lil nit
})); | ||
|
||
_stream2.write(undefined); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lil nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not seeing anything in particular that needs changing; few comments but those are optional - LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ace 💯
The nits are out of babel, so there is not much we can do about them |
Includes #304 and #303.
Fixes #302
Fixes #305