From 9e05672f8760e6d6c1e942aad6375f7ddf506bdb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 Apr 2020 23:28:38 +0200 Subject: [PATCH] LibJS: Math.sqrt.length should be 1 --- Libraries/LibJS/Runtime/MathObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Runtime/MathObject.cpp b/Libraries/LibJS/Runtime/MathObject.cpp index b1755144af..2871feef99 100644 --- a/Libraries/LibJS/Runtime/MathObject.cpp +++ b/Libraries/LibJS/Runtime/MathObject.cpp @@ -36,7 +36,7 @@ MathObject::MathObject() { put_native_function("abs", abs, 1); put_native_function("random", random); - put_native_function("sqrt", sqrt); + put_native_function("sqrt", sqrt, 1); put("E", Value(M_E)); put("LN2", Value(M_LN2));