Skip to content

Commit

Permalink
Remove ! from calls to AOs that can't throw
Browse files Browse the repository at this point in the history
This commit removes the `!` from two AO calls that return regular values
not abrupt completions.
  • Loading branch information
justingrant authored and gibson042 committed Mar 22, 2023
1 parent f6c0c41 commit 8f9080e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ <h1>InitializeDateTimeFormat ( _dateTimeFormat_, _locales_, _options_ )</h1>
1. Set _timeZone_ to DefaultTimeZone().
1. Else,
1. Set _timeZone_ to ? ToString(_timeZone_).
1. If the result of ! IsValidTimeZoneName(_timeZone_) is *false*, then
1. If the result of IsValidTimeZoneName(_timeZone_) is *false*, then
1. Throw a *RangeError* exception.
1. Set _timeZone_ to ! CanonicalizeTimeZoneName(_timeZone_).
1. Set _timeZone_ to CanonicalizeTimeZoneName(_timeZone_).
1. Set _dateTimeFormat_.[[TimeZone]] to _timeZone_.
1. Let _formatOptions_ be a new Record.
1. Set _formatOptions_.[[hourCycle]] to _hc_.
Expand Down

0 comments on commit 8f9080e

Please sign in to comment.