diff options
author | Linus Groh <mail@linusgroh.de> | 2022-06-23 19:57:37 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-24 22:12:03 +0100 |
commit | 98dc964649fc9bae6c08e4285fdc394043cc58d2 (patch) | |
tree | dfc78a4ab6171cce19d4b3bd088a1b78833d5e73 | |
parent | 7138f10c304fe0ca57f9c7db70563618f0cc3ed9 (diff) | |
download | serenity-98dc964649fc9bae6c08e4285fdc394043cc58d2.zip |
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
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp index 6b67561383..b7a004119c 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainTime.cpp +++ b/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 |