summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/RegExpConstructor.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/RegExpConstructor.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/RegExpConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/RegExpConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/RegExpConstructor.cpp b/Libraries/LibJS/Runtime/RegExpConstructor.cpp
index c461fda01a..1e1ee0d54e 100644
--- a/Libraries/LibJS/Runtime/RegExpConstructor.cpp
+++ b/Libraries/LibJS/Runtime/RegExpConstructor.cpp
@@ -37,9 +37,9 @@ RegExpConstructor::RegExpConstructor(GlobalObject& global_object)
{
}
-void RegExpConstructor::initialize(Interpreter& interpreter, GlobalObject& global_object)
+void RegExpConstructor::initialize(GlobalObject& global_object)
{
- NativeFunction::initialize(interpreter, global_object);
+ NativeFunction::initialize(global_object);
define_property("prototype", global_object.regexp_prototype(), 0);
define_property("length", Value(2), Attribute::Configurable);
}