We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63835bd commit 57568ffCopy full SHA for 57568ff
lib/binarypack.js
@@ -286,7 +286,7 @@ Packer.prototype.pack = function(value){
286
var constructor = value.constructor;
287
if (constructor == Array){
288
this.pack_array(value);
289
- } else if (constructor == Blob || constructor == File) {
+ } else if (constructor == Blob || constructor == File || value instanceof Blob || value instanceof File) {
290
this.pack_bin(value);
291
} else if (constructor == ArrayBuffer) {
292
if(binaryFeatures.useArrayBufferView) {
0 commit comments