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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user