diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-22 17:50:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-23 17:31:08 +0200 |
commit | aaf6014ae11adc246a212d7bb201c16549718b22 (patch) | |
tree | 9632de66e7a2f9ab5aad99c88ea59a4694488ded /Libraries/LibJS/Runtime/FunctionConstructor.cpp | |
parent | 299824de73c09885a0c4158d4aea0db0680b6333 (diff) | |
download | serenity-aaf6014ae11adc246a212d7bb201c16549718b22.zip |
LibJS: Simplify Cell::initialize()
Remove the Interpreter& argument and pass only GlobalObject&. We can
find everything we need via the global object anyway.
Diffstat (limited to 'Libraries/LibJS/Runtime/FunctionConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/FunctionConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/FunctionConstructor.cpp b/Libraries/LibJS/Runtime/FunctionConstructor.cpp index 75e7249741..5af0bfd5a5 100644 --- a/Libraries/LibJS/Runtime/FunctionConstructor.cpp +++ b/Libraries/LibJS/Runtime/FunctionConstructor.cpp @@ -40,9 +40,9 @@ FunctionConstructor::FunctionConstructor(GlobalObject& global_object) { } -void FunctionConstructor::initialize(Interpreter& interpreter, GlobalObject& global_object) +void FunctionConstructor::initialize(GlobalObject& global_object) { - NativeFunction::initialize(interpreter, global_object); + NativeFunction::initialize(global_object); define_property("prototype", global_object.function_prototype(), 0); define_property("length", Value(1), Attribute::Configurable); } |