Add human readable version of errors
This commit is contained in:
parent
753a950816
commit
68131a6e2a
5 changed files with 55 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue