Skip to content

Convert big ruby integers to js bigints #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025
Merged

Conversation

bnoordhuis
Copy link
Collaborator

Numbers outside the range that double-precision floating-point numbers can represent exactly are now converted to JS BigInts instead of being rejected outright. Said range corresponds to Number.MIN_SAFE_INTEGER and Number.MAX_SAFE_INTEGER on the JS side.

Refs: #348

Numbers outside the range that double-precision floating-point numbers
can represent exactly are now converted to JS BigInts instead of being
rejected outright. Said range corresponds to `Number.MIN_SAFE_INTEGER`
and `Number.MAX_SAFE_INTEGER` on the JS side.

Refs: rubyjs#348
@SamSaffron SamSaffron merged commit adb2ccc into rubyjs:main Apr 10, 2025
24 of 32 checks passed
@SamSaffron
Copy link
Collaborator

Thanks Ben!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants