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:
parent
ca45d34055
commit
d792869799
Notes:
sideshowbarker
2024-07-18 03:34:55 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue