mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibJS: Update spec comment to convert mathematical to number value
This is an editorial change in the Temporal spec.
See: d2ae357
This commit is contained in:
parent
ca45d34055
commit
d792869799
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).
|
// 3. Set instant to ? ToTemporalInstant(instant).
|
||||||
auto* instant = TRY_OR_DISCARD(to_temporal_instant(global_object, vm.argument(0)));
|
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())
|
if (time_zone->offset_nanoseconds().has_value())
|
||||||
return Value(*time_zone->offset_nanoseconds());
|
return Value(*time_zone->offset_nanoseconds());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue