summaryrefslogtreecommitdiff
path: root/Userland/Utilities/js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r--Userland/Utilities/js.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index 2639206c84..4b19b8094d 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -96,7 +96,7 @@ public:
: GlobalObject(realm)
{
}
- virtual void initialize_global_object() override;
+ virtual void initialize_global_object(JS::Realm&) override;
virtual ~ReplObject() override = default;
private:
@@ -117,7 +117,7 @@ public:
: JS::GlobalObject(realm)
{
}
- virtual void initialize_global_object() override;
+ virtual void initialize_global_object(JS::Realm&) override;
virtual ~ScriptObject() override = default;
private:
@@ -1297,9 +1297,9 @@ static JS::ThrowCompletionOr<JS::Value> load_json_impl(JS::VM& vm)
return JS::JSONObject::parse_json_value(vm, json.value());
}
-void ReplObject::initialize_global_object()
+void ReplObject::initialize_global_object(JS::Realm& realm)
{
- Base::initialize_global_object();
+ Base::initialize_global_object(realm);
define_direct_property("global", this, JS::Attribute::Enumerable);
u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
define_native_function("exit", exit_interpreter, 0, attr);
@@ -1375,9 +1375,9 @@ JS_DEFINE_NATIVE_FUNCTION(ReplObject::print)
return JS::js_undefined();
}
-void ScriptObject::initialize_global_object()
+void ScriptObject::initialize_global_object(JS::Realm& realm)
{
- Base::initialize_global_object();
+ Base::initialize_global_object(realm);
define_direct_property("global", this, JS::Attribute::Enumerable);
u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
define_native_function("loadINI", load_ini, 1, attr);