Debian Codegraph @

js/src/tests/test262/language/expressions/in/private-field-invalid-identifier-simple.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright 2021 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 description: Invalid private identifier - simple case
7 info: |
8 12.10.5 Static Semantics: AllPrivateIdentifiersValid
9
10 AllPrivateIdentifiersValid is an abstract operation which takes names as an argument.
11
12 RelationalExpression:PrivateIdentifierinShiftExpression
13
14 1. If StringValue of PrivateIdentifier is in names, return true.
15 2. Return false.
16
17 esid: sec-relational-operators-runtime-semantics-evaluation
18 negative:
19 phase: parse
20 type: SyntaxError
21 features: [class-fields-private, class-fields-private-in]
22 ---*/
23
24 $DONOTEVALUATE();
25
26 #name in {};