mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
LibJS: Add Number()
This commit is contained in:
parent
40ac94995d
commit
f631f6a2e6
Notes:
sideshowbarker
2024-07-19 07:49:51 +09:00
Author: https://github.com/linusg
Commit: f631f6a2e6
Pull-request: https://github.com/SerenityOS/serenity/pull/1685
5 changed files with 137 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/MathObject.h>
|
||||
#include <LibJS/Runtime/NativeFunction.h>
|
||||
#include <LibJS/Runtime/NumberConstructor.h>
|
||||
#include <LibJS/Runtime/ObjectConstructor.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
|
||||
|
@ -60,6 +61,7 @@ GlobalObject::GlobalObject()
|
|||
put("Object", heap().allocate<ObjectConstructor>());
|
||||
put("Array", heap().allocate<ArrayConstructor>());
|
||||
put("Boolean", heap().allocate<BooleanConstructor>());
|
||||
put("Number", heap().allocate<NumberConstructor>());
|
||||
}
|
||||
|
||||
GlobalObject::~GlobalObject()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue