1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +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

@ -41,7 +41,6 @@ Error::Error(const FlyString& name, const String& message, Object& prototype)
, m_name(name)
, m_message(message)
{
set_prototype(&prototype);
}
Error::~Error()