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

Fix Math.signbit semantics #687

Merged
merged 1 commit into from Nov 3, 2019
Merged

Fix Math.signbit semantics #687

merged 1 commit into from Nov 3, 2019

Conversation

chicoxyzzy
Copy link
Contributor

@chicoxyzzy chicoxyzzy commented Nov 3, 2019

According to the spec draft, Math.signbit returns true only for negative values and Math.signbit(NaN) should return false

According [spec draft](https://tc39.es/proposal-Math.signbit/Math.signbit.html#spec), Math.signbit returns `true` only for negative values and `Math.signbit(NaN)` should return `true`
@zloirock
Copy link
Owner

zloirock commented Nov 3, 2019

Hmm...

@zloirock
Copy link
Owner

zloirock commented Nov 3, 2019

IIRC, this polyfill in the core-js from the time when the spec was not ready. So seems I missed up something.

@zloirock
Copy link
Owner

zloirock commented Nov 3, 2019

Thanks.

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