summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-08-14 23:54:24 +0100
committerLinus Groh <mail@linusgroh.de>2021-08-15 10:36:36 +0100
commitbe07e2e91bda0e1bfb7eb2702eac5a5d182c4684 (patch)
tree7f3585583f2553e3631af5c001ce124f18adb81c /Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp
parent301d622b46c8534bbafcd48ecd40476da8b72c70 (diff)
downloadserenity-be07e2e91bda0e1bfb7eb2702eac5a5d182c4684.zip
LibJS: Start implementing Temporal.PlainMonthDay
This commit adds the PlainMonthDay object itself, its constructor and prototype (currently empty), and the CreateTemporalMonthDay abstract operations.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp
index 0d9c405d96..ca919452f4 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Temporal.cpp
@@ -11,6 +11,7 @@
#include <LibJS/Runtime/Temporal/Now.h>
#include <LibJS/Runtime/Temporal/PlainDateConstructor.h>
#include <LibJS/Runtime/Temporal/PlainDateTimeConstructor.h>
+#include <LibJS/Runtime/Temporal/PlainMonthDayConstructor.h>
#include <LibJS/Runtime/Temporal/PlainTimeConstructor.h>
#include <LibJS/Runtime/Temporal/PlainYearMonthConstructor.h>
#include <LibJS/Runtime/Temporal/Temporal.h>
@@ -41,6 +42,7 @@ void Temporal::initialize(GlobalObject& global_object)
define_direct_property(vm.names.Instant, global_object.temporal_instant_constructor(), attr);
define_direct_property(vm.names.PlainDate, global_object.temporal_plain_date_constructor(), attr);
define_direct_property(vm.names.PlainDateTime, global_object.temporal_plain_date_time_constructor(), attr);
+ define_direct_property(vm.names.PlainMonthDay, global_object.temporal_plain_month_day_constructor(), attr);
define_direct_property(vm.names.PlainTime, global_object.temporal_plain_time_constructor(), attr);
define_direct_property(vm.names.PlainYearMonth, global_object.temporal_plain_year_month_constructor(), attr);
define_direct_property(vm.names.TimeZone, global_object.temporal_time_zone_constructor(), attr);