Browse Source

LibJS: Math.sqrt.length should be 1

Andreas Kling 5 years ago
parent
commit
9e05672f87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibJS/Runtime/MathObject.cpp

+ 1 - 1
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));