From 9950f06623d1e27442397bb3e4f1762b3ad28242 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 25 Mar 2022 18:29:27 +0000 Subject: [PATCH] LibJS: Update spec comment in BuiltinTimeZoneGetPlainDateTimeFor This is an editorial change in the Temporal spec from a long time ago. See: https://github.com/tc39/proposal-temporal/commit/e480d40 --- Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp index 4cd8a8d8e5..854e15c4ee 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp @@ -508,7 +508,7 @@ ThrowCompletionOr builtin_time_zone_get_plain_date_time_for(Glob // 2. Let offsetNanoseconds be ? GetOffsetNanosecondsFor(timeZone, instant). auto offset_nanoseconds = TRY(get_offset_nanoseconds_for(global_object, time_zone, instant)); - // 3. Let result be ! GetISOPartsFromEpoch(instant.[[Nanoseconds]]). + // 3. Let result be ! GetISOPartsFromEpoch(ℝ(instant.[[Nanoseconds]])). auto result = get_iso_parts_from_epoch(instant.nanoseconds()); // 4. Set result to ! BalanceISODateTime(result.[[Year]], result.[[Month]], result.[[Day]], result.[[Hour]], result.[[Minute]], result.[[Second]], result.[[Millisecond]], result.[[Microsecond]], result.[[Nanosecond]] + offsetNanoseconds).