mirror of https://github.com/tc39/test262.git
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
|
// Copyright (C) 2016 The V8 Project authors. All rights reserved.
|
||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||
|
|
||
|
/*---
|
||
|
es6id: 20.1.2.2
|
||
|
esid: sec-number.isfinite
|
||
|
description: >
|
||
|
Return false if argument is NaN
|
||
|
info: |
|
||
|
Number.isFinite ( number )
|
||
|
|
||
|
[...]
|
||
|
2. If number is NaN, +∞, or -∞, return false.
|
||
|
[...]
|
||
|
---*/
|
||
|
|
||
|
assert.sameValue(Number.isFinite(NaN), false);
|