Fix error in arrayBuffer when there are extra bytes (#37)

master
iatll 2 years ago committed by GitHub
parent 59caf17eca
commit 707ee7ced1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -399,7 +399,7 @@
} }
} }
if (extraBytes) { if (extraBytes) {
array[i] = s[i]; array[j] = s[i];
buffer = buffer.slice(0, bytes); buffer = buffer.slice(0, bytes);
} }
return buffer; return buffer;

Loading…
Cancel
Save