summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-01-25 00:06:49 +0000
committerLinus Groh <mail@linusgroh.de>2022-01-25 00:06:49 +0000
commit96db8a061bbfa0a56ad7d5ef1b0b32e2e83089b1 (patch)
treecd276fe525d0173818b10577b4a00b32d3a3086b /Userland
parentf3341f48e30051aa8bd38f744816e9b09fd88e35 (diff)
downloadserenity-96db8a061bbfa0a56ad7d5ef1b0b32e2e83089b1.zip
LibJS: Correct FormatTimeZoneOffsetString arg in CreateTemporalTimeZone
This is an editorial change in the Temporal spec (accidentally marked normative). See: https://github.com/tc39/proposal-temporal/commit/3039c98
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
index 5e1cc9667e..c627e05c7e 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
@@ -90,8 +90,7 @@ ThrowCompletionOr<TimeZone*> create_temporal_time_zone(GlobalObject& global_obje
}
// 5. Else,
else {
- // a. Set object.[[Identifier]] to ! FormatTimeZoneOffsetString(identifier).
- // TODO: `identifier` is wrong here. See: https://github.com/tc39/proposal-temporal/pull/2010
+ // a. Set object.[[Identifier]] to ! FormatTimeZoneOffsetString(offsetNanosecondsResult.[[Value]]).
object->set_identifier(format_time_zone_offset_string(offset_nanoseconds_result.value()));
// b. Set object.[[OffsetNanoseconds]] to offsetNanosecondsResult.[[Value]].