From bb86d535a923681ad06307a7e2a7258f906f84bb Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 14 Jul 2021 21:59:17 +0100 Subject: [PATCH] js: Tweak pretty-printing of Temporal.{Instant,TimeZone} objects No need for the key/value style here, just put it right after the type. --- Userland/Utilities/js.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 1fdebc743f..59ad892344 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -431,8 +431,8 @@ static void print_temporal_instant(JS::Object const& object, HashTable(object); print_type("Temporal.Instant"); + out(" "); // FIXME: Print human readable date and time, like in print_date() - ideally handling arbitrarily large values since we get a bigint. - out("\n nanoseconds: "); print_value(&instant.nanoseconds(), seen_objects); } @@ -440,7 +440,7 @@ static void print_temporal_time_zone(JS::Object const& object, HashTable(object); print_type("Temporal.TimeZone"); - out("\n identifier: "); + out(" "); print_value(JS::js_string(object.vm(), time_zone.identifier()), seen_objects); if (time_zone.offset_nanoseconds().has_value()) { out("\n offset (ns): ");