This repository was archived by the owner on Dec 2, 2024. It is now read-only.
Array Buffers #34
Closed
Description
If I try to put array buffer into a db that has valueEncoding set to 'binary' I get an error about
message: "value cannot be an empty ArrayBuffer"
name: "WriteError"
as far as I can tell this is due to it being improperly turned into a Uint8 at some point, I managed to trace it to here where the array Buffer failed the Buffer.isBuffer test, but then when new Buffer(ArrayBuffer) is called it uses ArrayBuffer.prototype.length instead of ArrayBuffer.prototype.byteLength, so I'll likely have to open an issue there as well