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

Allow ES2020 BigInt values to be passed to operations taking integers. #828

Closed
ExE-Boss opened this issue Dec 12, 2019 · 4 comments
Closed

Comments

@ExE-Boss
Copy link
Contributor

ExE-Boss commented Dec 12, 2019

ES2020 adds the BigInt type, which allows for integers outside the ‑253...253 ‑ 1 to be represented in JavaScript code.

This makes it possible to handle the full range of long long and unsigned long long values in JavaScript.

@bzbarsky
Copy link
Collaborator

Please see #525

@bzbarsky
Copy link
Collaborator

And in particular, the decision there was that BigInt will be a separate type not passable to operations taking integers, for consistency with ES.

I assume you meant long long and unsigned long long, by the way, since the full range of long and unsigned long is not a problem in the ES bindings.

@ExE-Boss
Copy link
Contributor Author

Yeah, I keep mistakenly thinking of the Java long type, which is an i64, whereas WebIDL uses the C long, which is an i32.

I suggest we rename them to remove this confusion: #843.

@annevk
Copy link
Member

annevk commented Feb 14, 2020

Let's dupe this into that PR.

@annevk annevk closed this as completed Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants