Fix reference errors in isStringable
// FREEBIE
This commit is contained in:
parent
91bdd37019
commit
70fe14e91b
1 changed files with 4 additions and 0 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Reference in a new issue