Index: src/math.js |
diff --git a/src/math.js b/src/math.js |
index 008a41ee55b2db74f7a522957e471f38990204d2..f06249d2521fc8447b7eda8aab8b1b171c2b0cd8 100644 |
--- a/src/math.js |
+++ b/src/math.js |
@@ -186,13 +186,6 @@ function MathTrunc(x) { |
return x; |
} |
-// ES6 draft 09-27-13, section 20.2.2.12. |
-function MathCosh(x) { |
- if (!IS_NUMBER(x)) x = NonNumberToNumber(x); |
- if (!NUMBER_IS_FINITE(x)) return MathAbs(x); |
- return (MathExp(x) + MathExp(-x)) / 2; |
-} |
- |
// ES6 draft 09-27-13, section 20.2.2.33. |
function MathTanh(x) { |
if (!IS_NUMBER(x)) x = NonNumberToNumber(x); |
@@ -369,7 +362,7 @@ function SetUpMath() { |
"sign", MathSign, |
"trunc", MathTrunc, |
"sinh", MathSinh, // implemented by third_party/fdlibm |
- "cosh", MathCosh, |
+ "cosh", MathCosh, // implemented by third_party/fdlibm |
"tanh", MathTanh, |
"asinh", MathAsinh, |
"acosh", MathAcosh, |