tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/acosh/arg-is-infinity.js
raw| 1 | // Copyright (C) 2016 The V8 Project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es6id: 20.2.2.3 |
| 6 | esid: sec-math.acosh |
| 7 | description: > |
| 8 | Return Infinity if x is Infinity |
| 9 | info: | |
| 10 | Math.acosh ( x ) |
| 11 | |
| 12 | If x is +∞, the result is +∞. |
| 13 | ---*/ |
| 14 | |
| 15 | assert.sameValue(Math.acosh(Infinity), Infinity); |