mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			368 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			368 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2019 Leo Balter. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
export default 42;
 | 
						|
 | 
						|
await Promise.resolve().then(() => {
 | 
						|
  // This rejection will tick first unwrapping all the promises first
 | 
						|
  return Promise.reject(new RangeError());
 | 
						|
});
 | 
						|
 | 
						|
var rejection = Promise.reject(new TypeError());
 | 
						|
await rejection;
 |