Fix reference errors in isStringable
// FREEBIE
This commit is contained in:
@@ -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 ||
|
||||||
|
Reference in New Issue
Block a user