From cb33320814609d0b57ef00d68cf33ebaa0a7a0c6 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 29 Apr 2022 18:44:44 +0200 Subject: [PATCH] LibJS: Fix one more instance of Number value / integer confusion This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/5b1b783 --- Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp index 809c193ad8..940ff2eebf 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp @@ -69,7 +69,7 @@ JS_DEFINE_NATIVE_FUNCTION(TimeZonePrototype::get_offset_nanoseconds_for) if (time_zone->offset_nanoseconds().has_value()) return Value(*time_zone->offset_nanoseconds()); - // 5. Return ! GetIANATimeZoneOffsetNanoseconds(instant.[[Nanoseconds]], timeZone.[[Identifier]]). + // 5. Return 𝔽(! GetIANATimeZoneOffsetNanoseconds(instant.[[Nanoseconds]], timeZone.[[Identifier]])). return Value((double)get_iana_time_zone_offset_nanoseconds(instant->nanoseconds(), time_zone->identifier())); }