From 006bea5d31194bab6b8d83e4ae252faba6d46e18 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 18 Dec 2021 17:17:36 +0000 Subject: [PATCH] LibJS: Remove outdated comment in prepare_partial_temporal_fields() This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/bf066ea --- Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 99309effc1..88d1c85f41 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -1796,7 +1796,6 @@ ThrowCompletionOr prepare_partial_temporal_fields(GlobalObject& global_ else if (property.is_one_of("monthCode"sv, "offset"sv, "era"sv)) value = TRY(value.to_primitive_string(global_object)); - // NOTE: According to the spec this is step 4c, but I believe that's incorrect. See https://github.com/tc39/proposal-temporal/issues/1910. // iii. Perform ! CreateDataPropertyOrThrow(result, property, value). MUST(result->create_data_property_or_throw(property, value)); }