mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS: Implement most of the Reflect object
This commit is contained in:
parent
1ba2e6768d
commit
79b829637e
Notes:
sideshowbarker
2024-07-19 07:08:14 +09:00
Author: https://github.com/linusg
Commit: 79b829637e
Pull-request: https://github.com/SerenityOS/serenity/pull/2047
Reviewed-by: https://github.com/awesomekling
22 changed files with 877 additions and 54 deletions
|
@ -49,6 +49,7 @@
|
|||
#include <LibJS/Runtime/Object.h>
|
||||
#include <LibJS/Runtime/ObjectConstructor.h>
|
||||
#include <LibJS/Runtime/ObjectPrototype.h>
|
||||
#include <LibJS/Runtime/ReflectObject.h>
|
||||
#include <LibJS/Runtime/Shape.h>
|
||||
#include <LibJS/Runtime/StringConstructor.h>
|
||||
#include <LibJS/Runtime/StringPrototype.h>
|
||||
|
@ -97,6 +98,7 @@ void GlobalObject::initialize()
|
|||
put("globalThis", this, attr);
|
||||
put("console", heap().allocate<ConsoleObject>(), attr);
|
||||
put("Math", heap().allocate<MathObject>(), attr);
|
||||
put("Reflect", heap().allocate<ReflectObject>(), attr);
|
||||
|
||||
add_constructor("Array", m_array_constructor, *m_array_prototype);
|
||||
add_constructor("Boolean", m_boolean_constructor, *m_boolean_prototype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue