LibJS: Add Number()

This commit is contained in:
Linus Groh 2020-04-07 16:17:23 +01:00 committed by Andreas Kling
parent 40ac94995d
commit f631f6a2e6
Notes: sideshowbarker 2024-07-19 07:49:51 +09:00
5 changed files with 137 additions and 0 deletions

View file

@ -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()