Browse Source

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

+ 0 - 1
Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp

@@ -1796,7 +1796,6 @@ ThrowCompletionOr<Object*> 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));
         }