2021-09-06 22:18:48 -04:00
|
|
|
/*
|
2024-08-14 14:46:19 -04:00
|
|
|
* Copyright (c) 2022-2024, Tim Flynn <trflynn89@serenityos.org>
|
2021-09-06 22:18:48 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Intl/Collator.h>
|
|
|
|
|
|
|
|
|
|
namespace JS::Intl {
|
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(Collator);
|
2023-11-19 09:45:05 +01:00
|
|
|
|
2021-09-06 22:18:48 -04:00
|
|
|
// 10 Collator Objects, https://tc39.es/ecma402/#collator-objects
|
|
|
|
|
Collator::Collator(Object& prototype)
|
2022-12-14 12:17:58 +01:00
|
|
|
: Object(ConstructWithPrototypeTag::Tag, prototype)
|
2021-09-06 22:18:48 -04:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-20 21:00:37 +02:00
|
|
|
void Collator::visit_edges(Visitor& visitor)
|
|
|
|
|
{
|
|
|
|
|
Base::visit_edges(visitor);
|
|
|
|
|
visitor.visit(m_bound_compare);
|
|
|
|
|
}
|
2021-09-06 22:18:48 -04:00
|
|
|
|
|
|
|
|
}
|