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

String conversion behavior update #121

Open
podkovyrin opened this issue Jul 15, 2024 · 0 comments
Open

String conversion behavior update #121

podkovyrin opened this issue Jul 15, 2024 · 0 comments

Comments

@podkovyrin
Copy link

This update changed how parsing an empty string into BigInt works:
d2d29c1#diff-33404997836caa3c602713d04259952721517b81439ca84f263b778837c177bfR44

5.3.0:
When you used BigInt(""), it would create a BigInt with a zero value: BigInt(0).

5.4.0:
Now, using BigInt("") causes a crash due to a force unwrap

Ideally, the expected behavior should be to return either a zero value or nil.

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

1 participant