Skip to content

Fails to unpack numbers > UINT_MAX (4294967295) #2

@mortiy

Description

@mortiy

Such code works:

var UINT_MAX = 4294967295;

BinaryPack.unpack(
    BinaryPack.pack(
        { number: UINT_MAX }
    )
);

This throws ( RangeError: Maximum call stack size exceeded ):

BinaryPack.unpack(
    BinaryPack.pack(
        { number: UINT_MAX + 1 }
    )
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions