Skip to content

Commit 17f8cdb

Browse files
committed
Editorial: Use consistent name for offset strings
This fixes one instance of _timeZoneResult_.[[Offset]] which was not a slot on the Record returned by that operation. It should be [[OffsetString]]. Use the name "offset string" more consistently when referring to offset strings, rather than "offset", to avoid confusion with the offset option or offset in nanoseconds.
1 parent a16fcfa commit 17f8cdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/abstractops.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ <h1>ToRelativeTemporalObject ( _options_ )</h1>
476476
1. Let _string_ be ? ToString(_value_).
477477
1. Let _result_ be ? ParseTemporalRelativeToString(_string_).
478478
1. Let _calendar_ be ? ToTemporalCalendarWithISODefault(_result_.[[Calendar]]).
479-
1. Let _offsetString_ be _result_.[[TimeZoneOffset]].
479+
1. Let _offsetString_ be _result_.[[TimeZoneOffsetString]].
480480
1. Let _timeZoneName_ be _result_.[[TimeZoneIANAName]].
481481
1. If _timeZoneName_ is not *undefined*, then
482482
1. If ParseText(! StringToCodePoints(_timeZoneName_), |TimeZoneNumericUTCOffset|) is not a List of errors, then
@@ -1412,11 +1412,11 @@ <h1>ParseTemporalRelativeToString ( _isoString_ )</h1>
14121412
1. If _isoString_ satisfies the syntax of a |TemporalZonedDateTimeString| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
14131413
1. Let _timeZoneResult_ be ! ParseTemporalTimeZoneString(_isoString_).
14141414
1. Let _z_ be _timeZoneResult_.[[Z]].
1415-
1. Let _offset_ be _timeZoneResult_.[[Offset]].
1415+
1. Let _offsetString_ be _timeZoneResult_.[[OffsetString]].
14161416
1. Let _timeZone_ be _timeZoneResult_.[[Name]].
14171417
1. Else,
14181418
1. Let _z_ be *false*.
1419-
1. Let _offset_ be *undefined*.
1419+
1. Let _offsetString_ be *undefined*.
14201420
1. Let _timeZone_ be *undefined*.
14211421
1. Return the Record {
14221422
[[Year]]: _result_.[[Year]],
@@ -1430,7 +1430,7 @@ <h1>ParseTemporalRelativeToString ( _isoString_ )</h1>
14301430
[[Nanosecond]]: _result_.[[Nanosecond]],
14311431
[[Calendar]]: _result_.[[Calendar]],
14321432
[[TimeZoneZ]]: _z_,
1433-
[[TimeZoneOffset]]: _offset_,
1433+
[[TimeZoneOffsetString]]: _offsetString_,
14341434
[[TimeZoneIANAName]]: _timeZone_
14351435
}.
14361436
</emu-alg>

0 commit comments

Comments
 (0)