| // Copyright (C) 2015 the V8 project authors. All rights reserved. | |
| // This code is governed by the BSD license found in the LICENSE file. | |
| /*--- | |
| desc: > | |
| PropertyName of an AssignmentProperty may be a ComputedPropertyName. | |
| template: default | |
| es6id: 12.14.5.2 | |
| ---*/ | |
| //- setup | |
| var x, y, xy; | |
| //- elems | |
| { ['x' + 'y']: x } | |
| //- vals | |
| { x: 1, xy: 23, y: 2 } | |
| //- body | |
| assert.sameValue(x, 23); | |
| assert.sameValue(y, undefined); | |
| assert.sameValue(xy, undefined); |