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