Skip to content
Snippets Groups Projects
grammar-privatename-whitespace-error-field-init.case 425 B
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
desc: No space allowed between sigil and IdentifierName (Field with Initializer)
info: |
  Updated Productions

  ClassElementName :
    PropertyName
    PrivateName

  PrivateName ::
    # IdentifierName
template: syntax/invalid
features: [class-fields-private]
---*/

//- elements
# x = 1;