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:
Linus Groh 2022-06-23 19:57:37 +01:00
parent 7138f10c30
commit 98dc964649
Notes: sideshowbarker 2024-07-17 16:23:06 +09:00

View file

@ -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