summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ReflectObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-23 17:21:53 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-23 17:21:53 +0200
commitba641e97d9326be94b0b281fe140b5849c626b50 (patch)
tree2eea0d35a1b391a9a78c9c838fe69779f1a3eef7 /Libraries/LibJS/Runtime/ReflectObject.cpp
parentfc4ed8d444535f6ddf5b2d8f414466e2bdfb46b5 (diff)
downloadserenity-ba641e97d9326be94b0b281fe140b5849c626b50.zip
LibJS: Clarify Object (base class) construction somewhat
Divide the Object constructor into three variants: - The regular one (takes an Object& prototype) - One for use by GlobalObject - One for use by objects without a prototype (e.g ObjectPrototype)
Diffstat (limited to 'Libraries/LibJS/Runtime/ReflectObject.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ReflectObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/ReflectObject.cpp b/Libraries/LibJS/Runtime/ReflectObject.cpp
index 2c3cfa251c..b013591876 100644
--- a/Libraries/LibJS/Runtime/ReflectObject.cpp
+++ b/Libraries/LibJS/Runtime/ReflectObject.cpp
@@ -76,7 +76,7 @@ static void prepare_arguments_list(Interpreter& interpreter, Value value, Marked
}
ReflectObject::ReflectObject(GlobalObject& global_object)
- : Object(global_object.object_prototype())
+ : Object(*global_object.object_prototype())
{
}