diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Number/isSafeInteger/infinity.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Number/isSafeInteger/infinity.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Number/isSafeInteger/infinity.js b/js/src/tests/test262/built-ins/Number/isSafeInteger/infinity.js new file mode 100644 index 0000000000..53642c9289 --- /dev/null +++ b/js/src/tests/test262/built-ins/Number/isSafeInteger/infinity.js @@ -0,0 +1,19 @@ +// 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 an Infinity value +info: | + Number.isSafeInteger ( number ) + + [...] + 2. If number is NaN, +∞, or -∞, return false. + [...] +---*/ + +assert.sameValue(Number.isSafeInteger(Infinity), false, "Infinity"); +assert.sameValue(Number.isSafeInteger(-Infinity), false, "-Infinity"); + +reportCompare(0, 0); |