mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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:
committed by
Andreas Kling
parent
1d94ca7cfc
commit
9f399f7341
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user