test262/test/language/computed-property-names/class/static/setter-constructor.js

13 lines
345 B
JavaScript
Raw Normal View History

// 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: 12.2.5
description: >
In a class, computed property names for static
setters cannot be "constructor"
negative: SyntaxError
---*/
class C {
static set ['constructor'](x) {}
}