diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-24 16:19:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-24 17:18:09 +0200 |
commit | 7ccb8c86093bb05dc25f6a261bb048d1d590eebf (patch) | |
tree | 49287362f2729ff681f1d7356f9b07b4af31399e /Userland/Libraries/LibJS/Runtime/Object.h | |
parent | c02e992de2edb40e3af85c78b5856b5020b7d08e (diff) | |
download | serenity-7ccb8c86093bb05dc25f6a261bb048d1d590eebf.zip |
LibJS: Provide default hash traits for JS::PropertyKey
Let's not require people to use PropertyNameTraits everywhere when we
can just specialize AK::Traits<JS::PropertyKey> instead. :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Object.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Object.h b/Userland/Libraries/LibJS/Runtime/Object.h index 472a2c7e8e..673fa5fd25 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.h +++ b/Userland/Libraries/LibJS/Runtime/Object.h @@ -101,7 +101,7 @@ public: ThrowCompletionOr<bool> set_integrity_level(IntegrityLevel); ThrowCompletionOr<bool> test_integrity_level(IntegrityLevel) const; ThrowCompletionOr<MarkedValueList> enumerable_own_property_names(PropertyKind kind) const; - ThrowCompletionOr<Object*> copy_data_properties(Value source, HashTable<PropertyKey, PropertyNameTraits> const& seen_names, GlobalObject& global_object); + ThrowCompletionOr<Object*> copy_data_properties(Value source, HashTable<PropertyKey> const& seen_names, GlobalObject& global_object); PrivateElement* private_element_find(PrivateName const& name); ThrowCompletionOr<void> private_field_add(PrivateName const& name, Value value); |