test262/src/class-elements/static-as-valid-static-field.case

25 lines
492 B
Plaintext

// Copyright (C) 2020 Igalia S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: static is a valid name of a static field
info: |
ClassElement:
...
static FieldDefinition ;
template: default
includes: [propertyHelper.js]
features: [class-static-fields-public]
---*/
//- elements
static static;
//- assertions
verifyProperty(C, "static", {
value: undefined,
enumerable: true,
writable: true,
configurable: true
});