-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Panic parsing some floats #1063
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running this test, we get the following panic:
This is the stack trace:
This happens here. In theory, at this point in the code, we have already checked that what we are receiving is a valid float literal, but it seems that some representation of it is passing the checks but still fails to parse.
The minimal code that seems to cause this issue is this one:
This should in theory be parsed as
5e-324
, but instead, it panics. This might be because Rust doesn't parse floats the same way as JavaScript does, and we are usingf64::from_str
.The text was updated successfully, but these errors were encountered: