浏览代码

LibJS: Math.sqrt.length should be 1

Andreas Kling 5 年之前
父节点
当前提交
9e05672f87
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));