Debian Codegraph @

js/src/tests/test262/language/expressions/property-accessors/non-identifier-name.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-left-hand-side-expressions
7 info: |
8 Token following DOT must be a valid identifier-name, test with string literal.
9 description: >
10 12.3 Left-Hand-Side Expressions
11 MemberExpression[Yield, Await]:
12 MemberExpression[?Yield, ?Await] . IdentifierName
13
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 unresolvableReference."";