mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-27 01:33:59 +01:00 
			
		
		
		
	* Add missing generators feature flags * Generate files * Add generators flags * fixup! Add generators flags
		
			
				
	
	
		
			16 lines
		
	
	
		
			336 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			336 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2015 André Bargull. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| description: >
 | |
|     Generator statements cannot be used as constructors.
 | |
| es6id: 14.4
 | |
| features: [generators]
 | |
| ---*/
 | |
| 
 | |
| function* g(){}
 | |
| 
 | |
| assert.throws(TypeError, function() {
 | |
|   var instance = new g();
 | |
| });
 |