-
Notifications
You must be signed in to change notification settings - Fork 455
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
classify js bigint type correctly #5351
Conversation
@cometkim hi, would you mind update the PR with smaller diffs |
what does that mean "smaller diffs"? I only changed the implementation of |
@cometkim sorry, I was on leave for several months. I mean not check in diffs of generated code |
ts2ocaml would greatly benefit from having I'm willing to help this if you need a hand. |
@bobzhang I just cleaned the PR. I'm also wondering if there are any latest plans for bigint first-class support. |
would you rebase on current master -- looks like we can move on with this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestions on the order of checks and final default.
Probably does not matter much but might be slightly more future-proof.
43add45
to
086b02a
Compare
This looks great. Seems ready to merge. |
The context is this changes so rarely that I guess it might be unlikely that more tests would catch anything in future. If so, nothing else to do. |
Also would you update the changelog. |
(CI fails because some generated files were not checked in after compiling). |
Oh, thanks for updating the changelog :) |
Tests are OK, and I think it's enough here. |
If we're going to have support for BigInt in the future, maybe it's better to create |
@cristianoc I don't know how notifications work in GH, so I decided to mention you just in case 😅 I can prepare a PR with it using #5350 as a reference, or even revive it. |
Sure go ahead. |
I've created a PR in which added the BigInt module #5531. I think it should be good enough as the first iteration. |
currently,
Js.Types.classify
to external bigint value matchesJSSymbol('a)
This is also related to #5350
I guess
bigint_val
will be replaced with the bigint binding