Debian Codegraph @

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