mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
@@ -34,8 +34,12 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
MathObject::MathObject()
|
||||
: Object(interpreter().global_object().object_prototype())
|
||||
MathObject::MathObject(GlobalObject& global_object)
|
||||
: Object(global_object.object_prototype())
|
||||
{
|
||||
}
|
||||
|
||||
void MathObject::initialize(Interpreter&, GlobalObject&)
|
||||
{
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_native_function("abs", abs, 1, attr);
|
||||
|
||||
Reference in New Issue
Block a user