diff --git a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp index a23174112b..8c7d5b1a74 100644 --- a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp @@ -36,7 +36,7 @@ namespace JS { RegExpPrototype::RegExpPrototype(GlobalObject& global_object) - : RegExpObject({}, {}, *global_object.object_prototype()) + : Object(*global_object.object_prototype()) { } diff --git a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.h b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.h index 69b0708ce1..372c64a41c 100644 --- a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.h +++ b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.h @@ -30,8 +30,8 @@ namespace JS { -class RegExpPrototype final : public RegExpObject { - JS_OBJECT(RegExpPrototype, RegExpObject); +class RegExpPrototype final : public Object { + JS_OBJECT(RegExpPrototype, Object); public: explicit RegExpPrototype(GlobalObject&);