Skip to content

Commit

Permalink
Bugfix: Fix order in TimeZone.p.getOffsetStringFor
Browse files Browse the repository at this point in the history
This was an omission in #2519, a recently-merged normative change, that
Anba spotted after the fact. Possibly a rebase error.

Makes getOffsetStringFor consistent with getPlainDateTimeFor and
getInstantFor. The reference code was already correct here.

Closes: #2775
  • Loading branch information
ptomato authored and Ms2ger committed Feb 26, 2024
1 parent 4b476fa commit 95e6f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/timezone.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ <h1>Temporal.TimeZone.prototype.getOffsetStringFor ( _instant_ )</h1>
<emu-alg>
1. Let _timeZone_ be the *this* value.
1. Perform ? RequireInternalSlot(_timeZone_, [[InitializedTemporalTimeZone]]).
1. Let _timeZoneRec_ be ? CreateTimeZoneMethodsRecord(_timeZone_, « ~get-offset-nanoseconds-for~ »).
1. Set _instant_ to ? ToTemporalInstant(_instant_).
1. Let _timeZoneRec_ be ? CreateTimeZoneMethodsRecord(_timeZone_, « ~get-offset-nanoseconds-for~ »).
1. Return ? GetOffsetStringFor(_timeZoneRec_, _instant_).
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 95e6f9e

Please sign in to comment.