summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ProxyConstructor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-22 17:50:18 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-23 17:31:08 +0200
commitaaf6014ae11adc246a212d7bb201c16549718b22 (patch)
tree9632de66e7a2f9ab5aad99c88ea59a4694488ded /Libraries/LibJS/Runtime/ProxyConstructor.cpp
parent299824de73c09885a0c4158d4aea0db0680b6333 (diff)
downloadserenity-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/ProxyConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ProxyConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/ProxyConstructor.cpp b/Libraries/LibJS/Runtime/ProxyConstructor.cpp
index 152ea2ee88..299d1eac8d 100644
--- a/Libraries/LibJS/Runtime/ProxyConstructor.cpp
+++ b/Libraries/LibJS/Runtime/ProxyConstructor.cpp
@@ -38,9 +38,9 @@ ProxyConstructor::ProxyConstructor(GlobalObject& global_object)
{
}
-void ProxyConstructor::initialize(Interpreter& interpreter, GlobalObject& global_object)
+void ProxyConstructor::initialize(GlobalObject& global_object)
{
- NativeFunction::initialize(interpreter, global_object);
+ NativeFunction::initialize(global_object);
define_property("prototype", global_object.proxy_prototype(), 0);
define_property("length", Value(2), Attribute::Configurable);
}