nan.js (402B)
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 NaN 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(NaN), false); 17 18 reportCompare(0, 0);