1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:58:11 +00:00

LibJS: Use "Completion" to emphasize completion record

This is an editorial change in the Temporal spec.

See: 31d9fc5
This commit is contained in:
Linus Groh 2022-05-06 19:34:03 +02:00
parent f64b69955e
commit 15fe6297bc

View file

@ -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]] »).
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);
// 4. If offsetNanosecondsResult is an abrupt completion, then