diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Number/isSafeInteger/nan.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Number/isSafeInteger/nan.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Number/isSafeInteger/nan.js b/js/src/tests/test262/built-ins/Number/isSafeInteger/nan.js new file mode 100644 index 0000000000..7320e44f77 --- /dev/null +++ b/js/src/tests/test262/built-ins/Number/isSafeInteger/nan.js @@ -0,0 +1,18 @@ +// Copyright (c) 2016 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-number.issafeinteger +description: > + Return false if argument is NaN +info: | + Number.isSafeInteger ( number ) + + [...] + 2. If number is NaN, +∞, or -∞, return false. + [...] +---*/ + +assert.sameValue(Number.isSafeInteger(NaN), false); + +reportCompare(0, 0); |