diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/DateConstructor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/DateConstructor.cpp b/Libraries/LibJS/Runtime/DateConstructor.cpp index d00b1e6323..41a02dd903 100644 --- a/Libraries/LibJS/Runtime/DateConstructor.cpp +++ b/Libraries/LibJS/Runtime/DateConstructor.cpp @@ -34,8 +34,12 @@ namespace JS { -DateConstructor::DateConstructor() - : NativeFunction("Date", *interpreter().global_object().function_prototype()) +DateConstructor::DateConstructor(GlobalObject& global_object) + : NativeFunction("Date", *global_object.function_prototype()) +{ +} + +void DateConstructor::initialize(Interpreter&, GlobalObject&) { define_property("prototype", interpreter().global_object().date_prototype(), 0); define_property("length", Value(7), Attribute::Configurable); |