Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
non-Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
Features:
- class-fields-public
- class
Expected no error, got SyntaxError: invalid statement encountered.
Expected no error, got SyntaxError: invalid statement encountered.
// This file was procedurally generated from the following sources: // - src/class-elements/grammar-fields-multi-line.case // - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template /*--- description: Valid multi-line, multi-field (class declaration) esid: prod-ClassElement features: [class-fields-public, class] flags: [generated] info: | ClassElement : MethodDefinition static MethodDefinition FieldDefinition ; ; FieldDefinition : ClassElementName Initializer _opt ClassElementName : PropertyName PrivateName ---*/ class C { x y }