Skip to content
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

BigInt can't support u128 or i128 #371

Open
lastmjs opened this issue Oct 4, 2024 · 1 comment
Open

BigInt can't support u128 or i128 #371

lastmjs opened this issue Oct 4, 2024 · 1 comment

Comments

@lastmjs
Copy link

lastmjs commented Oct 4, 2024

Hi, I believe that a JavaScript bigint should be able to handle Rust u128 or i128 values, but BigInt only has from_u64 and from_i64.

Does rquickjs have a way to safely and precisely convert u128 or i128 values to BigInt? If not, I feel that it should.

@DelSkayn
Copy link
Owner

Unfortunately QuickJS itself doesn't have a way to covert between u128 and it's BigInt type which is why rquickjs also doesn't support it.
Support for this would require support for it in QuickJS.

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

No branches or pull requests

2 participants