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
This commit is contained in:
Linus Groh 2021-09-21 19:13:22 +02:00
parent ca45d34055
commit d792869799
Notes: sideshowbarker 2024-07-18 03:34:55 +09:00

View file

@ -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());