mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
LibJS: Start implementing Intl Segments objects
This commit is contained in:
parent
891dfd9cbb
commit
bbacea255f
8 changed files with 136 additions and 0 deletions
|
@ -69,6 +69,7 @@
|
|||
#include <LibJS/Runtime/Intl/RelativeTimeFormatPrototype.h>
|
||||
#include <LibJS/Runtime/Intl/SegmenterConstructor.h>
|
||||
#include <LibJS/Runtime/Intl/SegmenterPrototype.h>
|
||||
#include <LibJS/Runtime/Intl/SegmentsPrototype.h>
|
||||
#include <LibJS/Runtime/IteratorPrototype.h>
|
||||
#include <LibJS/Runtime/JSONObject.h>
|
||||
#include <LibJS/Runtime/MapConstructor.h>
|
||||
|
@ -181,6 +182,8 @@ void GlobalObject::initialize_global_object()
|
|||
|
||||
m_async_from_sync_iterator_prototype = heap().allocate<AsyncFromSyncIteratorPrototype>(*this, *this);
|
||||
|
||||
m_intl_segments_prototype = heap().allocate<Intl::SegmentsPrototype>(*this, *this);
|
||||
|
||||
#define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \
|
||||
if (!m_##snake_name##_prototype) \
|
||||
m_##snake_name##_prototype = heap().allocate<PrototypeName>(*this, *this);
|
||||
|
@ -323,6 +326,7 @@ void GlobalObject::visit_edges(Visitor& visitor)
|
|||
visitor.visit(m_proxy_constructor);
|
||||
visitor.visit(m_generator_prototype);
|
||||
visitor.visit(m_async_from_sync_iterator_prototype);
|
||||
visitor.visit(m_intl_segments_prototype);
|
||||
visitor.visit(m_array_prototype_values_function);
|
||||
visitor.visit(m_date_constructor_now_function);
|
||||
visitor.visit(m_eval_function);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue