mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			513 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			513 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.5
 | 
						|
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");
 |