Debian Codegraph @

js/src/tests/test262/language/expressions/object/prop-def-invalid-star-prefix.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2019 Tiancheng "Timothy" Gu. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 description: >
7 * is not a valid prefix of an identifier reference
8 esid: sec-object-initializer
9 info: |
10 PropertyDefinition:
11 IdentifierReference
12 CoverInitializedName
13 PropertyName : AssignmentExpression
14 MethodDefinition
15 negative:
16 phase: parse
17 type: SyntaxError
18 ---*/
19
20 $DONOTEVALUATE();
21
22 ({* foo});