Skip to content

Commit a29c40b

Browse files
Ms2gerptomato
authored andcommitted
Editorial: Replace dead code by an assertion.
1 parent baead4d commit a29c40b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/timezone.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ <h1>ParseTimeZoneOffsetString ( _offsetString_ )</h1>
503503
1. If _offsetString_ does not satisfy the syntax of a |TimeZoneNumericUTCOffset| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
504504
1. Throw a *RangeError* exception.
505505
1. Let _sign_, _hours_, _minutes_, _seconds_, and _fraction_ be the parts of _offsetString_ produced respectively by the |TimeZoneUTCOffsetSign|, |TimeZoneUTCOffsetHour|, |TimeZoneUTCOffsetMinute|, |TimeZoneUTCOffsetSecond|, and |TimeZoneUTCOffsetFraction| productions, or *undefined* if not present.
506-
1. If either _hours_ or _sign_ are *undefined*, throw a *RangeError* exception.
506+
1. Assert: _sign_ is not *undefined*.
507+
1. Assert: _hours_ is not *undefined*.
507508
1. If _sign_ is the code unit 0x002D (HYPHEN-MINUS) or 0x2212 (MINUS SIGN), then
508509
1. Set _sign_ to −1.
509510
1. Else,

0 commit comments

Comments
 (0)