From 15fe6297bc333b4bacdbe1aa83fe0ae3addd796b Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 6 May 2022 19:34:03 +0200 Subject: [PATCH] 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 --- Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp index cf9b04904f..e661f68b10 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp @@ -72,7 +72,7 @@ ThrowCompletionOr 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(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