summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/prop-def-invalid-star-prefix.js
blob: cacc6b1ec46b1347b3eb2c5641599e5b6f29511b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |reftest| error:SyntaxError
// Copyright (C) 2019 Tiancheng "Timothy" Gu. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
  * is not a valid prefix of an identifier reference
esid: sec-object-initializer
info: |
    PropertyDefinition:
      IdentifierReference
      CoverInitializedName
      PropertyName : AssignmentExpression
      MethodDefinition
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

({* foo});