blob: 729f452cfec650999ff00cef7d3e1d39f5272429 [file] [log] [blame] [edit]
// 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 an instance field
info: |
ClassElement:
...
FieldDefinition ;
FieldDefinition:
ClassElementName Initializer_opt
ClassElementName:
PropertyName
template: default
includes: [propertyHelper.js]
features: [class-fields-public]
---*/
//- elements
static = "foo";
//- assertions
let c = new C();
verifyProperty(c, "static", {
value: "foo",
enumerable: true,
writable: true,
configurable: true
});