mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			192 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			192 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| //@ runBigIntEnabled
 | |
| 
 | |
| function assert(a) {
 | |
|     if (!a)
 | |
|         throw new Error("Bad assertion");
 | |
| }
 | |
| 
 | |
| let a = 0b11n;
 | |
| for (let i = 0; i < 1000000; i++) {
 | |
|     a &= 0b01n;
 | |
| }
 | |
| 
 | |
| assert(a === 0b01n);
 | |
| 
 |