Skip to content

Commit 57568ff

Browse files
committed
1 parent 63835bd commit 57568ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binarypack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Packer.prototype.pack = function(value){
286286
var constructor = value.constructor;
287287
if (constructor == Array){
288288
this.pack_array(value);
289-
} else if (constructor == Blob || constructor == File) {
289+
} else if (constructor == Blob || constructor == File || value instanceof Blob || value instanceof File) {
290290
this.pack_bin(value);
291291
} else if (constructor == ArrayBuffer) {
292292
if(binaryFeatures.useArrayBufferView) {

0 commit comments

Comments
 (0)