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:
lilia 2014-11-09 20:03:08 -08:00
parent e190582d9e
commit 1ad898a62e
3 changed files with 23 additions and 10 deletions

View file

@ -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) {