mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:17:45 +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
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