mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 03:34:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			368 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			368 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2023 Peter Klecha. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| description: Promise.withResolvers errors when the receiver is not a constructor
 | |
| esid: sec-promise.withresolvers
 | |
| features: [promise-with-resolvers]
 | |
| ---*/
 | |
| 
 | |
| assert.throws(TypeError, function() {
 | |
|   Promise.withResolvers.call(eval);
 | |
| });
 |