summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-17 16:52:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-17 16:53:35 +0100
commitd792200a5531bf9872e19c7c7a3ba4c865ad43b6 (patch)
tree3c29f8ef40f08033a7bf49d7539e911f97ffd269 /Userland/Libraries/LibJS/Runtime
parentea81dc13cf961fc7963fc3bc8584479c5f82a55e (diff)
downloadserenity-d792200a5531bf9872e19c7c7a3ba4c865ad43b6.zip
LibJS: Rename GlobalObject::initialize() => initialize_global_object()
This function was shadowing Object::initialize() which cannot be called on global objects and has a different set of parameters.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.cpp2
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
index 2b0a01bcc4..e7e0ac9b00 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -82,7 +82,7 @@ GlobalObject::GlobalObject()
{
}
-void GlobalObject::initialize()
+void GlobalObject::initialize_global_object()
{
auto& vm = this->vm();
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.h b/Userland/Libraries/LibJS/Runtime/GlobalObject.h
index 791bde78ad..6261a23077 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.h
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.h
@@ -37,7 +37,7 @@ class GlobalObject : public ScopeObject {
public:
explicit GlobalObject();
- virtual void initialize();
+ virtual void initialize_global_object();
virtual ~GlobalObject() override;