1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibJS: Remove reduntant set_prototype() calls

If we're inheriting from Object() we already call its constructor which
sets the prototype - no need to do it again.
This commit is contained in:
Linus Groh 2020-06-04 20:35:23 +01:00 committed by Andreas Kling
parent 1d94ca7cfc
commit 9f399f7341
2 changed files with 0 additions and 2 deletions

View file

@ -42,7 +42,6 @@ Date::Date(Core::DateTime datetime, u16 milliseconds, Object& prototype)
, m_datetime(datetime)
, m_milliseconds(milliseconds)
{
set_prototype(&prototype);
}
Date::~Date()