From d792869799a595678b1d8202b76a7be9999d2050 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 21 Sep 2021 19:13:22 +0200 Subject: [PATCH] LibJS: Update spec comment to convert mathematical to number value This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/d2ae357 --- 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 48d90fbd82..6f22ef956f 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZonePrototype.cpp @@ -60,7 +60,7 @@ JS_DEFINE_NATIVE_FUNCTION(TimeZonePrototype::get_offset_nanoseconds_for) // 3. Set instant to ? ToTemporalInstant(instant). auto* instant = TRY_OR_DISCARD(to_temporal_instant(global_object, vm.argument(0))); - // 4. If timeZone.[[OffsetNanoseconds]] is not undefined, return timeZone.[[OffsetNanoseconds]]. + // 4. If timeZone.[[OffsetNanoseconds]] is not undefined, return 𝔽(timeZone.[[OffsetNanoseconds]]). if (time_zone->offset_nanoseconds().has_value()) return Value(*time_zone->offset_nanoseconds());