summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/computed-property-names/class/method/constructor-can-be-getter.js
blob: aab8a295a88100840417ff1d9fb05e7d7ee1c709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.5.3
description: >
    computed property getter names can be called "constructor"
---*/
class C4 {
  get ['constructor']() {}
}

reportCompare(0, 0);