| 1 |
// Copyright (C) 2017 The V8 Project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: > |
| 6 |
Object literal shorthands are only valid with identifier references, |
| 7 |
not property names. (0) |
| 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 |
throw "Test262: This statement should not be evaluated."; |
| 21 |
|
| 22 |
({0}); |