Explorar o código

LibJS: Use "Completion" to emphasize completion record

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/31d9fc5
Linus Groh %!s(int64=3) %!d(string=hai) anos
pai
achega
15fe6297bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp

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

@@ -72,7 +72,7 @@ ThrowCompletionOr<TimeZone*> create_temporal_time_zone(GlobalObject& global_obje
     // 2. Let object be ? OrdinaryCreateFromConstructor(newTarget, "%Temporal.TimeZone.prototype%", « [[InitializedTemporalTimeZone]], [[Identifier]], [[OffsetNanoseconds]] »).
     // 2. Let object be ? OrdinaryCreateFromConstructor(newTarget, "%Temporal.TimeZone.prototype%", « [[InitializedTemporalTimeZone]], [[Identifier]], [[OffsetNanoseconds]] »).
     auto* object = TRY(ordinary_create_from_constructor<TimeZone>(global_object, *new_target, &GlobalObject::temporal_time_zone_prototype));
     auto* object = TRY(ordinary_create_from_constructor<TimeZone>(global_object, *new_target, &GlobalObject::temporal_time_zone_prototype));
 
 
-    // 3. Let offsetNanosecondsResult be ParseTimeZoneOffsetString(identifier).
+    // 3. Let offsetNanosecondsResult be Completion(ParseTimeZoneOffsetString(identifier)).
     auto offset_nanoseconds_result = parse_time_zone_offset_string(global_object, identifier);
     auto offset_nanoseconds_result = parse_time_zone_offset_string(global_object, identifier);
 
 
     // 4. If offsetNanosecondsResult is an abrupt completion, then
     // 4. If offsetNanosecondsResult is an abrupt completion, then