mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Add the WeakMap built-in object
This commit is contained in:
parent
1a8ee5d8d7
commit
39554f3787
Notes:
sideshowbarker
2024-07-18 12:22:34 +09:00
Author: https://github.com/IdanHo
Commit: 39554f3787
Pull-request: https://github.com/SerenityOS/serenity/pull/8014
Reviewed-by: https://github.com/linusg
9 changed files with 243 additions and 0 deletions
|
@ -62,6 +62,8 @@
|
|||
#include <LibJS/Runtime/TypedArrayConstructor.h>
|
||||
#include <LibJS/Runtime/TypedArrayPrototype.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
#include <LibJS/Runtime/WeakMapConstructor.h>
|
||||
#include <LibJS/Runtime/WeakMapPrototype.h>
|
||||
#include <LibJS/Runtime/WeakSetConstructor.h>
|
||||
#include <LibJS/Runtime/WeakSetPrototype.h>
|
||||
|
||||
|
@ -154,6 +156,7 @@ void GlobalObject::initialize_global_object()
|
|||
add_constructor(vm.names.Set, m_set_constructor, m_set_prototype);
|
||||
add_constructor(vm.names.String, m_string_constructor, m_string_prototype);
|
||||
add_constructor(vm.names.Symbol, m_symbol_constructor, m_symbol_prototype);
|
||||
add_constructor(vm.names.WeakMap, m_weak_map_constructor, m_weak_map_prototype);
|
||||
add_constructor(vm.names.WeakSet, m_weak_set_constructor, m_weak_set_prototype);
|
||||
|
||||
initialize_constructor(vm.names.TypedArray, m_typed_array_constructor, m_typed_array_prototype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue