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