Fix reference errors in isStringable

// FREEBIE
pull/749/head
lilia 9 years ago
parent 91bdd37019
commit 70fe14e91b

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

Loading…
Cancel
Save