Fix reference errors in isStringable

// FREEBIE
This commit is contained in:
lilia 2016-04-26 15:15:23 -07:00
parent 91bdd37019
commit 70fe14e91b
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@
;(function() {
'use strict';
var StaticByteBufferProto = new dcodeIO.ByteBuffer().__proto__;
var StaticArrayBufferProto = new ArrayBuffer().__proto__;
var StaticUint8ArrayProto = new Uint8Array().__proto__;
function isStringable(thing) {
return (thing === Object(thing) &&
(thing.__proto__ == StaticArrayBufferProto ||