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

shallowEqual() should handle NaN values correctly #101

Closed
rickbeerendonk opened this issue Jan 9, 2016 · 1 comment
Closed

shallowEqual() should handle NaN values correctly #101

rickbeerendonk opened this issue Jan 9, 2016 · 1 comment

Comments

@rickbeerendonk
Copy link

shallowEqual() should return true when dealing with NaN.

shallowEqual(NaN, NaN);  // true
shallowEqual({a: NaN}, {a: NaN});  // true

Fixing this would also fix the confusing error in React, see React Issue 5773.

@zpao
Copy link
Member

zpao commented Jan 11, 2016

As mentioned, will be syncing this out from internal at some point, but yes, we will be doing this.

@zpao zpao closed this as completed Jan 11, 2016
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

2 participants