test262/test/language/computed-property-names/class/method/constructor-cannot-be-gette...

12 lines
310 B
JavaScript

// Copyright (C) Copyright 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 cannot be "constructor"
negative: SyntaxError
---*/
class C4 {
get ['constructor']() {}
}