1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibJS: Fix one more instance of Number value / integer confusion

This is an editorial change in the Temporal spec.

See: 5b1b783
This commit is contained in:
Linus Groh 2022-04-29 18:44:44 +02:00
parent aac457755d
commit cb33320814

View file

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