diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 59ad892344..51b91d3759 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -427,6 +428,14 @@ static void print_data_view(JS::Object const& object, HashTable& se out(" @ {:p}", data_view.viewed_array_buffer()); } +static void print_temporal_calendar(JS::Object const& object, HashTable& seen_objects) +{ + auto& calendar = static_cast(object); + print_type("Temporal.Calendar"); + out(" "); + print_value(JS::js_string(object.vm(), calendar.identifier()), seen_objects); +} + static void print_temporal_instant(JS::Object const& object, HashTable& seen_objects) { auto& instant = static_cast(object); @@ -505,6 +514,8 @@ static void print_value(JS::Value value, HashTable& seen_objects) return print_primitive_wrapper_object("Number", object, seen_objects); if (is(object)) return print_primitive_wrapper_object("Boolean", object, seen_objects); + if (is(object)) + return print_temporal_calendar(object, seen_objects); if (is(object)) return print_temporal_instant(object, seen_objects); if (is(object))