Index: test/mjsunit/harmony/math-hyperbolic.js |
diff --git a/test/mjsunit/harmony/math-hyperbolic.js b/test/mjsunit/harmony/math-hyperbolic.js |
index 604448d89add4ab49ebfe004cf01912e4b65a0bd..c45a19c526db3315a7d52fb521940ae3ba59e710 100644 |
--- a/test/mjsunit/harmony/math-hyperbolic.js |
+++ b/test/mjsunit/harmony/math-hyperbolic.js |
@@ -60,7 +60,7 @@ function test_id(fun, rev, value) { |
}); |
-[Math.sinh, Math.asinh, Math.cosh].forEach(function(fun) { |
+[Math.sinh, Math.asinh].forEach(function(fun) { |
assertEquals("-Infinity", String(fun(-Infinity))); |
assertEquals("Infinity", String(fun(Infinity))); |
assertEquals("-Infinity", String(fun("-Infinity"))); |
@@ -68,6 +68,12 @@ function test_id(fun, rev, value) { |
}); |
+assertEquals("Infinity", String(Math.cosh(-Infinity))); |
+assertEquals("Infinity", String(Math.cosh(Infinity))); |
+assertEquals("Infinity", String(Math.cosh("-Infinity"))); |
+assertEquals("Infinity", String(Math.cosh("Infinity"))); |
+ |
+ |
assertEquals("-Infinity", String(Math.atanh(-1))); |
assertEquals("Infinity", String(Math.atanh(1))); |