blob: a14f23c68f860459cce93a418e88e3fced0fe161 [file] [log] [blame] [edit]
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: The pound signal in the private reference cannot be escaped
template: syntax/invalid
info: |
PrivateName ::
# IdentifierName
MemberExpression :
MemberExpression . PrivateName
CallExpression :
CallExpression . PrivateName
U+0023 is the escape sequence for #
features: [class-fields-private]
---*/
//- elements
method() {
foo().\u0023field;
}