mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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:
parent
aac457755d
commit
cb33320814
Notes:
sideshowbarker
2024-07-17 11:27:09 +09:00
Author: https://github.com/linusg
Commit: cb33320814
Pull-request: https://github.com/SerenityOS/serenity/pull/13837
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/Lubrsi ✅
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue