mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
parent
9610d18ebb
commit
06e29fac57
16 changed files with 64 additions and 33 deletions
|
@ -39,9 +39,9 @@ DateConstructor::DateConstructor(GlobalObject& global_object)
|
|||
{
|
||||
}
|
||||
|
||||
void DateConstructor::initialize(Interpreter&, GlobalObject&)
|
||||
void DateConstructor::initialize(Interpreter&, GlobalObject& global_object)
|
||||
{
|
||||
define_property("prototype", interpreter().global_object().date_prototype(), 0);
|
||||
define_property("prototype", global_object.date_prototype(), 0);
|
||||
define_property("length", Value(7), Attribute::Configurable);
|
||||
|
||||
define_native_function("now", now, 0, Attribute::Writable | Attribute::Configurable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue