blob: a00fba0aa314755b486e7071da832115674a0166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 12.2.5
description: >
Computed property names for getters
---*/
class C {
get ['a']() {
return 'A';
}
}
assert.sameValue(new C().a, 'A', "The value of `new C().a` is `'A'`");
reportCompare(0, 0);
|