Browse Source

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
Linus Groh 3 years ago
parent
commit
98dc964649
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp

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