summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/DateConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/DateConstructor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/Runtime/DateConstructor.cpp b/Libraries/LibJS/Runtime/DateConstructor.cpp
index d2f09ff9f3..a9f573e6be 100644
--- a/Libraries/LibJS/Runtime/DateConstructor.cpp
+++ b/Libraries/LibJS/Runtime/DateConstructor.cpp
@@ -37,10 +37,10 @@ namespace JS {
DateConstructor::DateConstructor()
: NativeFunction("Date", *interpreter().global_object().function_prototype())
{
- put("prototype", interpreter().global_object().date_prototype());
- put("length", Value(7));
+ put("prototype", interpreter().global_object().date_prototype(), 0);
+ put("length", Value(7), Attribute::Configurable);
- put_native_function("now", now);
+ put_native_function("now", now, 0, Attribute::Writable | Attribute::Configurable);
}
DateConstructor::~DateConstructor()