LibJS: Rename PropertyName to PropertyKey

Let's use the same name as the spec. :^)
This commit is contained in:
Andreas Kling 2021-10-24 16:01:24 +02:00
commit 398c181c79
Notes: sideshowbarker 2024-07-18 01:56:36 +09:00
55 changed files with 287 additions and 287 deletions

View file

@ -59,12 +59,12 @@ public:
void set_home_object(Object* home_object) { m_home_object = home_object; }
struct InstanceField {
Variant<PropertyName, PrivateName> name;
Variant<PropertyKey, PrivateName> name;
ECMAScriptFunctionObject* initializer { nullptr };
};
Vector<InstanceField> const& fields() const { return m_fields; }
void add_field(Variant<PropertyName, PrivateName> property_key, ECMAScriptFunctionObject* initializer);
void add_field(Variant<PropertyKey, PrivateName> property_key, ECMAScriptFunctionObject* initializer);
Vector<PrivateElement> const& private_methods() const { return m_private_methods; }
void add_private_method(PrivateElement method) { m_private_methods.append(move(method)); };