mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			493 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			493 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| // Copyright (C) 2017 Valerie Young. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| esid: sec-class-definitions-static-semantics-early-errors
 | |
| path: language/statements/class/fields-static-comp-name-
 | |
| name: static computed ClassElementName
 | |
| features: [class, class-static-fields-public, computed-property-names]
 | |
| ---*/
 | |
| 
 | |
| throw "Test262: This statement should not be evaluated.";
 | |
| 
 | |
| var x = "string";
 | |
| class C {
 | |
|   static [x] = /*{ initializer }*/;
 | |
| }
 |