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.
5 esid: sec-isfinite-number
7 Return false if number is NaN, Infinity or -Infinity
11 1. Let num be ? ToNumber(number).
12 2. If num is NaN, +∞, or -∞, return false.
15 assert.sameValue(isFinite(NaN), false, "NaN");
16 assert.sameValue(isFinite(Infinity), false, "Infinity");
17 assert.sameValue(isFinite(-Infinity), false, "-Infinity");