blob: 68a0064301d56de5d5a417e4c28c1b78ab7315f1 [file] [log] [blame]
// 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'`");