From 06593a81da7e7d5074ab0363d98e81aede645100 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 27 May 2023 14:25:43 +1200 Subject: [PATCH] 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. --- Userland/Libraries/LibJS/Runtime/MathObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/MathObject.cpp b/Userland/Libraries/LibJS/Runtime/MathObject.cpp index 4e984f643c..345cfa4ba9 100644 --- a/Userland/Libraries/LibJS/Runtime/MathObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/MathObject.cpp @@ -303,7 +303,7 @@ JS_DEFINE_NATIVE_FUNCTION(MathObject::atan2) } // 10. If ny < -0𝔽, then - if (y.as_double() < 0) { + if (y.as_double() < -0) { // a. If nx is +∞𝔽, return -0𝔽. if (x.is_positive_infinity()) return Value(-0.0);