mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
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. :^)
This commit is contained in:
parent
c02e992de2
commit
7ccb8c8609
5 changed files with 15 additions and 14 deletions
|
@ -219,7 +219,7 @@ ThrowCompletionOr<void> VM::property_binding_initialization(BindingPattern const
|
|||
{
|
||||
auto* object = TRY(value.to_object(global_object));
|
||||
|
||||
HashTable<PropertyKey, PropertyNameTraits> seen_names;
|
||||
HashTable<PropertyKey> seen_names;
|
||||
for (auto& property : binding.entries) {
|
||||
|
||||
VERIFY(!property.is_elision());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue