mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
LibJS: Align MathObject::atan closer to spec
This is not an observable difference. Nonetheless, it seems like a good idea to be as close to the spec as possible, so let's do that.
This commit is contained in:
parent
979973ca0e
commit
06593a81da
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/ShannonBooth-invenco 🔰
Commit: 06593a81da
Pull-request: https://github.com/SerenityOS/serenity/pull/19138
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ JS_DEFINE_NATIVE_FUNCTION(MathObject::atan2)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 10. If ny < -0𝔽, then
|
// 10. If ny < -0𝔽, then
|
||||||
if (y.as_double() < 0) {
|
if (y.as_double() < -0) {
|
||||||
// a. If nx is +∞𝔽, return -0𝔽.
|
// a. If nx is +∞𝔽, return -0𝔽.
|
||||||
if (x.is_positive_infinity())
|
if (x.is_positive_infinity())
|
||||||
return Value(-0.0);
|
return Value(-0.0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue