summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-06-09 19:23:04 +0300
committerLinus Groh <mail@linusgroh.de>2021-06-09 21:52:25 +0100
commit8b6beac5ce5e1ca5f4e0befa3a48d6d6923f648e (patch)
treeb08fa9d9a02be2d1ba27e511927ee1ade10cfd69 /Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
parentee9fe288b2d9182e83185b07a925df095289ddb2 (diff)
downloadserenity-8b6beac5ce5e1ca5f4e0befa3a48d6d6923f648e.zip
LibJS: Add the WeakSet built-in object
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
index f168a11d24..8d162b2f15 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -60,6 +60,8 @@
#include <LibJS/Runtime/TypedArrayConstructor.h>
#include <LibJS/Runtime/TypedArrayPrototype.h>
#include <LibJS/Runtime/Value.h>
+#include <LibJS/Runtime/WeakSetConstructor.h>
+#include <LibJS/Runtime/WeakSetPrototype.h>
namespace JS {
@@ -143,6 +145,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.WeakSet, m_weak_set_constructor, m_weak_set_prototype);
initialize_constructor(vm.names.TypedArray, m_typed_array_constructor, m_typed_array_prototype);