Simplify webcrypto type conversion
Previously we'd get a WordArray and convert to string before converting to array buffer. Instead, go directly to array buffer.
This commit is contained in:
parent
e190582d9e
commit
1ad898a62e
3 changed files with 23 additions and 10 deletions
|
@ -117,8 +117,7 @@ function getStringable(thing) {
|
|||
(thing === Object(thing) &&
|
||||
(thing.__proto__ == StaticArrayBufferProto ||
|
||||
thing.__proto__ == StaticUint8ArrayProto ||
|
||||
thing.__proto__ == StaticByteBufferProto ||
|
||||
thing.__proto__ == StaticWordArrayProto)));
|
||||
thing.__proto__ == StaticByteBufferProto)));
|
||||
}
|
||||
|
||||
function isEqual(a, b, mayBeShort) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue