Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Update hexToNumber to check for < Number.MIN_SAFE_INTEGER #4899

@Spacesai1or

Description

@Spacesai1or

hexToNumber actually checks if:

if (num > Number.MAX_SAFE_INTEGER) {
		return negative ? -num : num;
	}

so if we update it to also check for Number.MIN_SAFE_INTEGER, than my concern should be covered

Originally posted by @spacesailor24 in #4859 (comment)

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