summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js
blob: 087498f3f1fb013d5aeaeaf15a32334ae4fbaacd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2016 The V8 Project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-math.acosh
description: >
  Return Infinity if x is Infinity
info: |
  Math.acosh ( x )

  If x is +∞, the result is +∞.
---*/

assert.sameValue(Math.acosh(Infinity), Infinity);

reportCompare(0, 0);