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:
parent
39855fe9ef
commit
f07f8d5a44
8 changed files with 98 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue