Skip to content

A field with type 'bytes' is decoded into an empty array instead of an empty buffer #1012

@assaf-xm

Description

@assaf-xm

protobuf.js version: 6.8.6

Any empty 'bytes' field on a message, will be decoded into an empty javascript array.
The expected behavior is that it will be decoded into an empty buffer, in order to keep consistency with the case the field has data.

  • in protobuf js v5 it was decoded into an empty buffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions