blob: e40d850af342b0866077b63bcf0cec0003896707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2017 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
let 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);
//- teardown
promise
.then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
.then($DONE, $DONE);
|