blob: 55e5ba82b0e2e8a7bec8f93d8eba20a833cf21b8 [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/static-as-valid-instance-field-assigned.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 = "foo";
}
let c = new C();
verifyProperty(c, "static", {
value: "foo",
enumerable: true,
writable: true,
configurable: true
});