mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 13:44:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			678 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			678 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// This file was procedurally generated from the following sources:
 | 
						|
// - src/class-fields/grammar-field-def-has-initializer-no-sc.case
 | 
						|
// - src/class-fields/syntax/invalid/cls-expr-fields-invalid-syntax.template
 | 
						|
/*---
 | 
						|
description: SyntaxError (class expression)
 | 
						|
esid: prod-ClassElement
 | 
						|
features: [class-fields-private, class]
 | 
						|
flags: [generated]
 | 
						|
info: |
 | 
						|
 | 
						|
    ClassElement :
 | 
						|
      MethodDefinition
 | 
						|
      static MethodDefinition
 | 
						|
      FieldDefinition ;
 | 
						|
      ;
 | 
						|
 | 
						|
    FieldDefinition :
 | 
						|
      ClassElementName Initializer _opt
 | 
						|
 | 
						|
    ClassElementName :
 | 
						|
      PropertyName
 | 
						|
      PrivateName
 | 
						|
 | 
						|
---*/
 | 
						|
 | 
						|
 | 
						|
throw "Test262: This statement should not be evaluated.";
 | 
						|
 | 
						|
var C = class {
 | 
						|
  x = []
 | 
						|
};
 |