2015-03-30 18:48:02 +02:00
|
|
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
2015-03-02 20:10:32 +01:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 12.2.5
|
|
|
|
description: >
|
2015-03-05 19:39:30 +01:00
|
|
|
Computed property names for getters
|
2015-03-02 20:10:32 +01:00
|
|
|
---*/
|
2015-03-05 19:39:30 +01:00
|
|
|
var A = {
|
|
|
|
get ["a"]() {
|
|
|
|
return "A";
|
2015-03-02 20:10:32 +01:00
|
|
|
}
|
|
|
|
};
|
2015-03-05 19:39:30 +01:00
|
|
|
assert.sameValue(A.a, "A", "The value of `A.a` is `'A'`");
|