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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refine precision limits on unsafe_math #3589

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

alexlamsl
Copy link
Collaborator

#3587 (comment)

@kzc the original rationale for picking 20 as the limits instead is due to this:
toFixed

Obviously your suggestion makes better sense 馃槈

(TIL https://en.wikipedia.org/wiki/Significand#Use_of_%22mantissa%22)

@kzc
Copy link
Contributor

kzc commented Nov 16, 2019

That should significantly reduce the number of false positives of unsafe_math fuzzing. Perhaps some of those fuzzing checks can be removed.

unsafe_math: true,
}
input: {
console.log(4 / -3 + 1 === 1 / -3);

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a simplified version of #3587 (comment) 馃槈

@alexlamsl
Copy link
Collaborator Author

Perhaps some of those fuzzing checks can be removed.

Heh, those extra logic in ufuzz is put in place to suppress those from #3529 馃懟

@alexlamsl alexlamsl merged commit d1b2ece into mishoo:master Nov 16, 2019
@alexlamsl alexlamsl deleted the unsafe_math branch November 16, 2019 17:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants