-
-
Notifications
You must be signed in to change notification settings - Fork 64
support multi-byte wide typed arrays #78
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
Conversation
1deb57b to
2c19df0
Compare
98d7ab4 to
c8f6626
Compare
c8f6626 to
0a7c9a0
Compare
0a7c9a0 to
f76e123
Compare
|
Looks like node < 8 doesn't support passing a typed array directly into |
|
@ljharb yes, but newer versions do + this impl works regardless when proper |
|
ah ok cool. then we just need an easy way to feature-detect whether update takes a typed array, for the tests :-) |
c0f425f to
5c0a9d9
Compare
Same as: browserify/hash-base#19, browserify/cipher-base#23, but retains support for Array and Array-like objects, since this module isn't closely mimicking the Node.js API
For array-likes, coherence rechecks are added to ensure invalid results are not returned
On everything Node.js createHash works, this now should be compatible + additionally keeps array-like support