Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Array Buffers #34

Closed
Closed
@calvinmetcalf

Description

@calvinmetcalf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    upgrade guideImprovements or additions to upgrade guide(s)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions