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

Simplify checking result for negative zero #3804

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Connormiha
Copy link

I did a little simplification for checking for -0 in returned result.

@fturmel
Copy link
Member

fturmel commented May 16, 2024

I think it's OK, but let's double check that none of these functions are expected to return NaN.

CleanShot 2024-05-16 at 12 37 02@2x

@fturmel
Copy link
Member

fturmel commented May 16, 2024

Yeah... that's a no-go / breaking change unfortunately.

@Connormiha
Copy link
Author

@fturmel Yes, I knew about this effect when I made the edit. Should a function really return NaN if the function parameters are incorrect after implemented Typescript?

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