Skip to content

Commit 97d553c

Browse files
linusgptomato
authored andcommitted
Editorial: Update substring wording in ParseTimeZoneOffsetString
The phrase "the substring of S from inclusiveStart to exclusiveEnd" is already well-defined in ECMA-262: https://tc39.es/ecma262/#substring See also: #1830 (comment)
1 parent 056f695 commit 97d553c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/timezone.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ <h1>ParseTimeZoneOffsetString ( _offsetString_ )</h1>
514514
1. Set _seconds_ to ! ToIntegerOrInfinity(_seconds_).
515515
1. If _fraction_ is not *undefined*, then
516516
1. Set _fraction_ to the string-concatenation of the previous value of _fraction_ and the string *"000000000"*.
517-
1. Let _nanoseconds_ be the String value equal to the substring of _fraction_ consisting of the code units with indices 0 (inclusive) through 9 (exclusive).
517+
1. Let _nanoseconds_ be the String value equal to the substring of _fraction_ from 0 to 9.
518518
1. Set _nanoseconds_ to ! ToIntegerOrInfinity(_nanoseconds_).
519519
1. Else,
520520
1. Let _nanoseconds_ be 0.

0 commit comments

Comments
 (0)