mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS: Add conversion to mathematical number in ToTemporalTimeRecord
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/9f37d10
This commit is contained in:
parent
7138f10c30
commit
98dc964649
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/98dc964649 Pull-request: https://github.com/SerenityOS/serenity/pull/14367 Reviewed-by: https://github.com/IdanHo
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ ThrowCompletionOr<TemporalTimeLikeRecord> to_temporal_time_record(GlobalObject&
|
|||
// i. Assert: valueDesc is a data Property Descriptor.
|
||||
VERIFY(value_descriptor->is_data_descriptor());
|
||||
|
||||
// ii. Set the field of result whose name is field to valueDesc.[[Value]].
|
||||
// ii. Set the field of result whose name is field to ℝ(valueDesc.[[Value]]).
|
||||
result.*field = value_descriptor->value->as_double();
|
||||
}
|
||||
// e. Else if completeness is complete, then
|
||||
|
|
Loading…
Reference in a new issue