mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 15:19:16 +00:00
LibJS: Add a global "Object" constructor
This patch adds an "Object" constructor to the global object. The only function it implements so far is Object.getPrototypeOf().
This commit is contained in:
parent
a3d92b1210
commit
14047ca432
Notes:
sideshowbarker
2024-07-19 08:05:39 +09:00
Author: https://github.com/awesomekling
Commit: 14047ca432
9 changed files with 134 additions and 3 deletions
|
@ -42,11 +42,12 @@ namespace JS {
|
|||
Interpreter::Interpreter()
|
||||
: m_heap(*this)
|
||||
{
|
||||
m_global_object = heap().allocate<GlobalObject>();
|
||||
m_object_prototype = heap().allocate<ObjectPrototype>();
|
||||
m_string_prototype = heap().allocate<StringPrototype>();
|
||||
m_array_prototype = heap().allocate<ArrayPrototype>();
|
||||
m_error_prototype = heap().allocate<ErrorPrototype>();
|
||||
|
||||
m_global_object = heap().allocate<GlobalObject>();
|
||||
}
|
||||
|
||||
Interpreter::~Interpreter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue