LibJS: Add "constructor" property to constructor prototypes

This commit is contained in:
Andreas Kling 2020-04-08 11:05:38 +02:00
commit f07f8d5a44
Notes: sideshowbarker 2024-07-19 07:48:58 +09:00
8 changed files with 98 additions and 10 deletions

View file

@ -227,4 +227,14 @@ Value Interpreter::throw_exception(Exception* exception)
return {};
}
GlobalObject& Interpreter::global_object()
{
return static_cast<GlobalObject&>(*m_global_object);
}
const GlobalObject& Interpreter::global_object() const
{
return static_cast<const GlobalObject&>(*m_global_object);
}
}