mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2024 Jordan Harband. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| description: >
 | |
|   Promise.try does not implement [[Construct]], is not new-able
 | |
| includes: [isConstructor.js]
 | |
| features: [Reflect.construct, promise-try]
 | |
| ---*/
 | |
| 
 | |
| assert.sameValue(isConstructor(Promise.try), false, 'isConstructor(Promise.all) must return false');
 | |
| 
 | |
| assert.throws(TypeError, function () {
 | |
|   new Promise.try(function () {});
 | |
| });
 | |
| 
 |