summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/FunctionConstructor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-20 17:49:52 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-20 17:50:48 +0200
commit2fe4285693d4d98fb15eb8a4024afb299d25df4b (patch)
tree002b4f6a7b2536bccbf238890bc8eea4a712752f /Libraries/LibJS/Runtime/FunctionConstructor.cpp
parentcc5cba90db6c7452cce0155a0de51175b9560b40 (diff)
downloadserenity-2fe4285693d4d98fb15eb8a4024afb299d25df4b.zip
LibJS: Object::initialize() overrides must always call base class
Diffstat (limited to 'Libraries/LibJS/Runtime/FunctionConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/FunctionConstructor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/FunctionConstructor.cpp b/Libraries/LibJS/Runtime/FunctionConstructor.cpp
index 69ae5bfecf..4e2ebf0134 100644
--- a/Libraries/LibJS/Runtime/FunctionConstructor.cpp
+++ b/Libraries/LibJS/Runtime/FunctionConstructor.cpp
@@ -40,8 +40,9 @@ FunctionConstructor::FunctionConstructor(GlobalObject& global_object)
{
}
-void FunctionConstructor::initialize(Interpreter&, GlobalObject& global_object)
+void FunctionConstructor::initialize(Interpreter& interpreter, GlobalObject& global_object)
{
+ NativeFunction::initialize(interpreter, global_object);
define_property("prototype", global_object.function_prototype(), 0);
define_property("length", Value(1), Attribute::Configurable);
}