1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
// Copyright (C) 2017 The V8 Project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Object literal shorthands are only valid with identifier references,
not property names. (0)
esid: sec-object-initializer
info: |
PropertyDefinition:
IdentifierReference
CoverInitializedName
PropertyName : AssignmentExpression
MethodDefinition
negative:
phase: parse
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
({0});
|