array fill bug fix

This commit is contained in:
ferricles 2022-07-04 10:08:44 -07:00
parent e956d28c56
commit 458c18297d

View file

@ -324,7 +324,7 @@ Base64 = (function () {
bit_vec.push(int); bit_vec.push(int);
} }
bit_vec.concat(Array.apply(0, this.bits.length)); bit_vec.concat(Array(10).fill(0));
this.bits = new Uint32Array(bit_vec); this.bits = new Uint32Array(bit_vec);
return this.append(data, length); return this.append(data, length);
} }