Skip to content

Commit

Permalink
Editorial: Replace HTML character entities with Unicode characters
Browse files Browse the repository at this point in the history
For precedent, see tc39/ecma262#2901 and
tc39/ecma402#907
  • Loading branch information
ptomato committed Aug 8, 2024
1 parent 73e8935 commit 82ce110
Show file tree
Hide file tree
Showing 12 changed files with 208 additions and 208 deletions.
54 changes: 27 additions & 27 deletions spec/abstractops.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ <h1>Units</h1>
<td>*"hour"*</td>
<td>*"hours"*</td>
<td>~time~</td>
<td>3.6 &times; 10<sup>12</sup></td>
<td>3.6 × 10<sup>12</sup></td>
</tr>

<tr>
<td>*"minute"*</td>
<td>*"minutes"*</td>
<td>~time~</td>
<td>6 &times; 10<sup>10</sup></td>
<td>6 × 10<sup>10</sup></td>
</tr>

<tr>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>
1. Assert: _dividend_ &gt; 1.
1. Let _maximum_ be _dividend_ - 1.
1. If _increment_ &gt; _maximum_, throw a *RangeError* exception.
1. If _dividend_ modulo _increment_ &ne; 0, then
1. If _dividend_ modulo _increment_ 0, then
1. Throw a *RangeError* exception.
1. Return ~unused~.
</emu-alg>
Expand All @@ -609,7 +609,7 @@ <h1>
1. If _digitsValue_ is not a Number, then
1. If ? ToString(_digitsValue_) is not *"auto"*, throw a *RangeError* exception.
1. Return *"auto"*.
1. If _digitsValue_ is *NaN*, *+&infin;*<sub>𝔽</sub>, or *-&infin;*<sub>𝔽</sub>, throw a *RangeError* exception.
1. If _digitsValue_ is *NaN*, *+*<sub>𝔽</sub>, or *-*<sub>𝔽</sub>, throw a *RangeError* exception.
1. Let _digitCount_ be floor(ℝ(_digitsValue_)).
1. If _digitCount_ &lt; 0 or _digitCount_ &gt; 9, throw a *RangeError* exception.
1. Return _digitCount_.
Expand Down Expand Up @@ -1124,7 +1124,7 @@ <h1>
1. Let _r2_ be the smallest integer such that _r2_ &gt; _quotient_.
1. Let _rounded_ be ApplyUnsignedRoundingMode(_quotient_, _r1_, _r2_, _unsignedRoundingMode_).
1. If _isNegative_ is ~negative~, set _rounded_ to -_rounded_.
1. Return _rounded_ &times; _increment_.
1. Return _rounded_ × _increment_.
</emu-alg>
</emu-clause>

Expand All @@ -1147,10 +1147,10 @@ <h1>
<emu-alg>
1. Let _quotient_ be _x_ / _increment_.
1. Let _unsignedRoundingMode_ be GetUnsignedRoundingMode(_roundingMode_, ~positive~).
1. Let _r1_ be the largest integer such that _r1_ &leq; _quotient_.
1. Let _r1_ be the largest integer such that _r1_ _quotient_.
1. Let _r2_ be the smallest integer such that _r2_ &gt; _quotient_.
1. Let _rounded_ be ApplyUnsignedRoundingMode(_quotient_, _r1_, _r2_, _unsignedRoundingMode_).
1. Return _rounded_ &times; _increment_.
1. Return _rounded_ × _increment_.
</emu-alg>
</emu-clause>

Expand Down Expand Up @@ -1606,7 +1606,7 @@ <h1>
<emu-alg>
1. Let _parseResult_ be ~empty~.
1. Let _calendar_ be ~empty~.
1. For each nonterminal _goal_ of &laquo; |TemporalDateTimeString|, |TemporalInstantString|, |TemporalTimeString|, |TemporalMonthDayString|, |TemporalYearMonthString| &raquo;, do
1. For each nonterminal _goal_ of « |TemporalDateTimeString|, |TemporalInstantString|, |TemporalTimeString|, |TemporalMonthDayString|, |TemporalYearMonthString| », do
1. If _parseResult_ is not a Parse Node, then
1. Set _parseResult_ to ParseText(StringToCodePoints(_isoString_), _goal_).
1. If _parseResult_ is a Parse Node, then
Expand Down Expand Up @@ -1832,40 +1832,40 @@ <h1>
1. Assert: _minutes_, _fMinutes_, _seconds_, and _fSeconds_ are empty.
1. Let _fHoursDigits_ be the substring of CodePointsToString(_fHours_) from 1.
1. Let _fHoursScale_ be the length of _fHoursDigits_.
1. Let _minutesMV_ be ? ToIntegerWithTruncation(_fHoursDigits_) / 10<sup>_fHoursScale_</sup> &times; 60.
1. Let _minutesMV_ be ? ToIntegerWithTruncation(_fHoursDigits_) / 10<sup>_fHoursScale_</sup> × 60.
1. Else,
1. Let _minutesMV_ be ? ToIntegerWithTruncation(CodePointsToString(_minutes_)).
1. If _fMinutes_ is not empty, then
1. Assert: _seconds_ and _fSeconds_ are empty.
1. Let _fMinutesDigits_ be the substring of CodePointsToString(_fMinutes_) from 1.
1. Let _fMinutesScale_ be the length of _fMinutesDigits_.
1. Let _secondsMV_ be ? ToIntegerWithTruncation(_fMinutesDigits_) / 10<sup>_fMinutesScale_</sup> &times; 60.
1. Let _secondsMV_ be ? ToIntegerWithTruncation(_fMinutesDigits_) / 10<sup>_fMinutesScale_</sup> × 60.
1. Else if _seconds_ is not empty, then
1. Let _secondsMV_ be ? ToIntegerWithTruncation(CodePointsToString(_seconds_)).
1. Else,
1. Let _secondsMV_ be remainder(_minutesMV_, 1) &times; 60.
1. Let _secondsMV_ be remainder(_minutesMV_, 1) × 60.
1. If _fSeconds_ is not empty, then
1. Let _fSecondsDigits_ be the substring of CodePointsToString(_fSeconds_) from 1.
1. Let _fSecondsScale_ be the length of _fSecondsDigits_.
1. Let _millisecondsMV_ be ? ToIntegerWithTruncation(_fSecondsDigits_) / 10<sup>_fSecondsScale_</sup> &times; 1000.
1. Let _millisecondsMV_ be ? ToIntegerWithTruncation(_fSecondsDigits_) / 10<sup>_fSecondsScale_</sup> × 1000.
1. Else,
1. Let _millisecondsMV_ be remainder(_secondsMV_, 1) &times; 1000.
1. Let _microsecondsMV_ be remainder(_millisecondsMV_, 1) &times; 1000.
1. Let _nanosecondsMV_ be remainder(_microsecondsMV_, 1) &times; 1000.
1. Let _millisecondsMV_ be remainder(_secondsMV_, 1) × 1000.
1. Let _microsecondsMV_ be remainder(_millisecondsMV_, 1) × 1000.
1. Let _nanosecondsMV_ be remainder(_microsecondsMV_, 1) × 1000.
1. If _sign_ contains the code point U+002D (HYPHEN-MINUS), then
1. Let _factor_ be -1.
1. Else,
1. Let _factor_ be 1.
1. Set _yearsMV_ to _yearsMV_ &times; _factor_.
1. Set _monthsMV_ to _monthsMV_ &times; _factor_.
1. Set _weeksMV_ to _weeksMV_ &times; _factor_.
1. Set _daysMV_ to _daysMV_ &times; _factor_.
1. Set _hoursMV_ to _hoursMV_ &times; _factor_.
1. Set _minutesMV_ to floor(_minutesMV_) &times; _factor_.
1. Set _secondsMV_ to floor(_secondsMV_) &times; _factor_.
1. Set _millisecondsMV_ to floor(_millisecondsMV_) &times; _factor_.
1. Set _microsecondsMV_ to floor(_microsecondsMV_) &times; _factor_.
1. Set _nanosecondsMV_ to floor(_nanosecondsMV_) &times; _factor_.
1. Set _yearsMV_ to _yearsMV_ × _factor_.
1. Set _monthsMV_ to _monthsMV_ × _factor_.
1. Set _weeksMV_ to _weeksMV_ × _factor_.
1. Set _daysMV_ to _daysMV_ × _factor_.
1. Set _hoursMV_ to _hoursMV_ × _factor_.
1. Set _minutesMV_ to floor(_minutesMV_) × _factor_.
1. Set _secondsMV_ to floor(_secondsMV_) × _factor_.
1. Set _millisecondsMV_ to floor(_millisecondsMV_) × _factor_.
1. Set _microsecondsMV_ to floor(_microsecondsMV_) × _factor_.
1. Set _nanosecondsMV_ to floor(_nanosecondsMV_) × _factor_.
1. If IsValidDuration(_yearsMV_, _monthsMV_, _weeksMV_, _daysMV_, _hoursMV_, _minutesMV_, _secondsMV_, _millisecondsMV_, _microsecondsMV_, _nanosecondsMV_) is *false*, throw a *RangeError* exception.
1. Return CreateDurationRecord(_yearsMV_, _monthsMV_, _weeksMV_, _daysMV_, _hoursMV_, _minutesMV_, _secondsMV_, _millisecondsMV_, _microsecondsMV_, _nanosecondsMV_).
</emu-alg>
Expand Down Expand Up @@ -2050,7 +2050,7 @@ <h1>
</dl>
<emu-alg>
1. Let _integer_ be ? ToIntegerWithTruncation(_argument_).
1. If _integer_ &le; 0, throw a *RangeError* exception.
1. If _integer_ 0, throw a *RangeError* exception.
1. Return _integer_.
</emu-alg>
</emu-clause>
Expand All @@ -2067,7 +2067,7 @@ <h1>
</dl>
<emu-alg>
1. Let _number_ be ? ToNumber(_argument_).
1. If _number_ is *NaN*, *+&infin;*<sub>𝔽</sub> or *-&infin;*<sub>𝔽</sub>, throw a *RangeError* exception.
1. If _number_ is *NaN*, *+*<sub>𝔽</sub> or *-*<sub>𝔽</sub>, throw a *RangeError* exception.
1. Return truncate(ℝ(_number_)).
</emu-alg>
</emu-clause>
Expand Down
Loading

0 comments on commit 82ce110

Please sign in to comment.