test262/src/class-elements/initializer-error/cls-decl-fields-static-comp-name.template
2018-10-23 13:51:17 +02:00

17 lines
453 B
Plaintext

// Copyright (C) 2017 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-comp-name-
name: static computed ClassElementName
features: [class, class-static-fields-public, computed-property-names]
---*/
$DONOTEVALUATE();
var x = "string";
class C {
static [x] = /*{ initializer }*/;
}