Debian Codegraph @

js/src/tests/test262/built-ins/Number/isFinite/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 esid: sec-number.isfinite
6 description: >
7 Return false if argument is Infinity or -Infinity
8 info: |
9 Number.isFinite ( number )
10
11 [...]
12 2. If number is NaN, +∞, or -∞, return false.
13 [...]
14 ---*/
15
16 assert.sameValue(Number.isFinite(Infinity), false, "+Infinity");
17 assert.sameValue(Number.isFinite(-Infinity), false, "-Infinity");
18
19 reportCompare(0, 0);