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() {
|
;(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…
Add table
Add a link
Reference in a new issue