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:
parent
1d94ca7cfc
commit
9f399f7341
2 changed files with 0 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue