summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Realm.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Realm.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Realm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Realm.h b/Userland/Libraries/LibJS/Runtime/Realm.h
index 56571729cf..bd4d25d5e2 100644
--- a/Userland/Libraries/LibJS/Runtime/Realm.h
+++ b/Userland/Libraries/LibJS/Runtime/Realm.h
@@ -23,6 +23,8 @@ public:
return vm.heap().allocate_without_global_object<Realm>();
}
+ void set_global_object(GlobalObject&, Object* this_value = nullptr);
+
[[nodiscard]] GlobalObject& global_object() const { return *m_global_object; }
[[nodiscard]] GlobalEnvironment& global_environment() const { return *m_global_environment; }