@@ -687,16 +687,16 @@ <h1>FormatSecondsStringPart ( _second_, _millisecond_, _microsecond_, _nanosecon
687687 1. Assert: _second_ , _millisecond_ , _microsecond_ , and _nanosecond_ are integers.
688688 1. If _precision_ is *"minute"* , return *""* .
689689 1. Let _secondsString_ be the string-concatenation of the code unit 0x003A (COLON) and ToZeroPaddedDecimalString(_second_ , 2).
690- 1. Let _fraction_ be _millisecond_ × ; 10<sup >6</sup > + _microsecond_ × ; 10<sup >3</sup > + _nanosecond_ .
690+ 1. Let _fractionNanoseconds_ be _millisecond_ × ; 10<sup >6</sup > + _microsecond_ × ; 10<sup >3</sup > + _nanosecond_ .
691691 1. If _precision_ is *"auto"* , then
692- 1. If _fraction_ is 0, return _secondsString_ .
693- 1. Set _fraction_ to ToZeroPaddedDecimalString(_fraction_ , 9).
694- 1. Set _fraction_ to the longest possible substring of _fraction_ starting at position 0 and not ending with the code unit 0x0030 (DIGIT ZERO).
692+ 1. If _fractionNanoseconds_ is 0, return _secondsString_ .
693+ 1. Let _fractionString_ be ToZeroPaddedDecimalString(_fractionNanoseconds_ , 9).
694+ 1. Set _fractionString_ to the longest prefix of _fractionString_ ending with a code unit other than 0x0030 (DIGIT ZERO).
695695 1. Else,
696696 1. If _precision_ is 0, return _secondsString_ .
697- 1. Set _fraction_ to ToZeroPaddedDecimalString(_fraction_ , 9).
698- 1. Set _fraction_ to the substring of _fraction_ from 0 to _precision_ .
699- 1. Return the string-concatenation of _secondsString_ , the code unit 0x002E (FULL STOP), and _fraction_ .
697+ 1. Let _fractionString_ be ToZeroPaddedDecimalString(_fractionNanoseconds_ , 9).
698+ 1. Set _fractionString_ to the substring of _fractionString_ from 0 to _precision_ .
699+ 1. Return the string-concatenation of _secondsString_ , the code unit 0x002E (FULL STOP), and _fractionString_ .
700700 </emu-alg >
701701 </emu-clause >
702702
0 commit comments