mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-30 03:03:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			718 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			718 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // This file was procedurally generated from the following sources:
 | |
| // - src/class-elements/super-private-access-invalid.case
 | |
| // - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
 | |
| /*---
 | |
| description: It is syntax error if PrivateName IdentifierName is accessed on SuperProperty (class declaration)
 | |
| esid: prod-ClassElement
 | |
| features: [class-methods-private, class]
 | |
| flags: [generated]
 | |
| negative:
 | |
|   phase: parse
 | |
|   type: SyntaxError
 | |
| info: |
 | |
|     ClassElementName :
 | |
|       PropertyName
 | |
|       PrivateName
 | |
| 
 | |
|     PrivateName ::
 | |
|       # IdentifierName
 | |
| 
 | |
|     SuperProperty:
 | |
|       super[Expression]
 | |
|       super.IdentifierName
 | |
| 
 | |
| ---*/
 | |
| 
 | |
| 
 | |
| $DONOTEVALUATE();
 | |
| 
 | |
| class C extends B
 | |
| {
 | |
|   method() {
 | |
|     super.#x();
 | |
|   }
 | |
| }
 |