|
@@ -65,6 +65,7 @@
|
|
|
#include <LibJS/Runtime/PromiseConstructor.h>
|
|
|
#include <LibJS/Runtime/PromisePrototype.h>
|
|
|
#include <LibJS/Runtime/ProxyConstructor.h>
|
|
|
+#include <LibJS/Runtime/Realm.h>
|
|
|
#include <LibJS/Runtime/ReflectObject.h>
|
|
|
#include <LibJS/Runtime/RegExpConstructor.h>
|
|
|
#include <LibJS/Runtime/RegExpPrototype.h>
|
|
@@ -318,6 +319,16 @@ void GlobalObject::visit_edges(Visitor& visitor)
|
|
|
#undef __JS_ENUMERATE
|
|
|
}
|
|
|
|
|
|
+Realm* GlobalObject::associated_realm()
|
|
|
+{
|
|
|
+ return m_associated_realm;
|
|
|
+}
|
|
|
+
|
|
|
+void GlobalObject::set_associated_realm(Badge<Realm>, Realm& realm)
|
|
|
+{
|
|
|
+ m_associated_realm = &realm;
|
|
|
+}
|
|
|
+
|
|
|
JS_DEFINE_NATIVE_FUNCTION(GlobalObject::gc)
|
|
|
{
|
|
|
#ifdef __serenity__
|