summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/elements/static-as-valid-static-field.js
blob: 88f818f28c210708434222aaa8fa7cf56390aaa4 (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.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;
}

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


reportCompare(0, 0);