summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/elements/static-as-valid-static-field-assigned.js
blob: 1383f338c0150e434f523bc0ae5e672a76a958a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// This file was procedurally generated from the following sources:
// - src/class-elements/static-as-valid-static-field-assigned.case
// - src/class-elements/default/cls-decl.template
/*---
description: static is a valid name of a static field (field definitions in a class declaration)
esid: prod-FieldDefinition
features: [class-static-fields-public, class]
flags: [generated]
includes: [propertyHelper.js]
info: |
    ClassElement:
      ...
      static FieldDefinition ;

---*/


class C {
  static static = "test262";
}

verifyProperty(C, "static", {
  value: "test262",
  enumerable: true,
  writable: true,
  configurable: true
});


reportCompare(0, 0);