Add human readable version of errors

This commit is contained in:
Matt Corallo 2014-05-27 21:29:44 +02:00
parent 753a950816
commit 68131a6e2a
5 changed files with 55 additions and 42 deletions

View file

@ -23,7 +23,7 @@ window.crypto.subtle = (function() {
var StaticArrayBufferProto = new ArrayBuffer().__proto__;
function assertIsArrayBuffer(thing) {
if (thing !== Object(thing) || thing.__proto__ != StaticArrayBufferProto)
throw new Error("WARNING: Needed a ArrayBuffer");
throw new Error("Needed a ArrayBuffer");
}
// private implementation functions