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/RegExpConstructor.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/RegExpConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/RegExpConstructor.cpp | 4 |
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); } |