1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:45:07 +00:00

LibJS: Add "constructor" property to constructor prototypes

This commit is contained in:
Andreas Kling 2020-04-08 11:05:38 +02:00
parent 39855fe9ef
commit f07f8d5a44
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);
}
}