mirror of
https://github.com/tc39/test262.git
synced 2025-05-22 07:40:29 +02:00
17 lines
453 B
Plaintext
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 }*/;
|
|
}
|