blob: 2316d6d09c5f20b6fb8f45cf57040288335c4ff3 [file] [log] [blame] [edit]
// 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);