blob: 355703f06b5a70ec6ecc88118f4b0f3013f2a54f [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/static-as-valid-instance-field.case
// - src/class-elements/default/cls-expr.template
/*---
description: static is a valid name of an instance field (field definitions in a class expression)
esid: prod-FieldDefinition
features: [class-fields-public, class]
flags: [generated]
includes: [propertyHelper.js]
info: |
ClassElement:
...
FieldDefinition ;
FieldDefinition:
ClassElementName Initializer_opt
ClassElementName:
PropertyName
---*/
var C = class {
static;
}
let c = new C();
verifyProperty(c, "static", {
value: undefined,
enumerable: true,
writable: true,
configurable: true
});