From a5ee1cd4b87a8cb217b1bc06c6b1e6b51142943a Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 28 Apr 2022 13:37:30 -0400 Subject: [PATCH] Editorial: Conform with ECMA-262 conventions for inequality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `≠` should be encoded as `≠` --- spec/calendar.html | 4 ++-- spec/duration.html | 18 +++++++++--------- spec/instant.html | 2 +- spec/plaindate.html | 10 +++++----- spec/plainmonthday.html | 6 +++--- spec/plaintime.html | 12 ++++++------ spec/plainyearmonth.html | 6 +++--- spec/timezone.html | 8 ++++---- spec/zoneddatetime.html | 2 +- 9 files changed, 34 insertions(+), 34 deletions(-) diff --git a/spec/calendar.html b/spec/calendar.html index 1cce771445..ea8db38722 100644 --- a/spec/calendar.html +++ b/spec/calendar.html @@ -445,7 +445,7 @@

ConsolidateCalendars ( _one_, _two_ )

IsISOLeapYear ( _year_ )

1. Assert: _year_ is an integer. - 1. If _year_ modulo 4 ≠ 0, return *false*. + 1. If _year_ modulo 4 ≠ 0, return *false*. 1. If _year_ modulo 400 = 0, return *true*. 1. If _year_ modulo 100 = 0, return *false*. 1. Return *true*. @@ -539,7 +539,7 @@

ResolveISOMonth ( _fields_ )

1. Let _numberPart_ be the substring of _monthCode_ from 1. 1. Set _numberPart_ to ! ToIntegerOrInfinity(_numberPart_). 1. If _numberPart_ < 1 or _numberPart_ > 12, throw a *RangeError* exception. - 1. If _month_ is not *undefined*, and _month_ ≠ _numberPart_, then + 1. If _month_ is not *undefined*, and _month_ ≠ _numberPart_, then 1. Throw a *RangeError* exception. 1. If SameValueNonNumeric(_monthCode_, ! BuildISOMonthCode(_numberPart_)) is *false*, then 1. Throw a *RangeError* exception. diff --git a/spec/duration.html b/spec/duration.html index a2e41da240..9587149683 100644 --- a/spec/duration.html +++ b/spec/duration.html @@ -1180,7 +1180,7 @@

It computes an integer number of nanoseconds from the given units, applying a given time zone offset shift in nanoseconds when converting from days to hours.
- 1. If _days_ ≠ 0, then + 1. If _days_ ≠ 0, then 1. Set _nanoseconds_ to _nanoseconds_ - _offsetShift_. 1. Set _hours_ to _hours_ + _days_ × 24. 1. Set _minutes_ to _minutes_ + _hours_ × 60. @@ -1285,7 +1285,7 @@

1. If _largestUnit_ is *"year"*, or _years_, _months_, _weeks_, and _days_ are all 0, then 1. Return ! CreateDateDurationRecord(_years_, _months_, _weeks_, _days_). 1. Let _sign_ be ! DurationSign(_years_, _months_, _weeks_, _days_, 0, 0, 0, 0, 0, 0). - 1. Assert: _sign_ ≠ 0. + 1. Assert: _sign_ ≠ 0. 1. Let _oneYear_ be ! CreateTemporalDuration(_sign_, 0, 0, 0, 0, 0, 0, 0, 0, 0). 1. Let _oneMonth_ be ! CreateTemporalDuration(0, _sign_, 0, 0, 0, 0, 0, 0, 0, 0). 1. Let _oneWeek_ be ! CreateTemporalDuration(0, 0, _sign_, 0, 0, 0, 0, 0, 0, 0). @@ -1299,7 +1299,7 @@

1. Throw a *RangeError* exception. 1. Let _dateAdd_ be ? GetMethod(_calendar_, *"dateAdd"*). 1. Let _dateUntil_ be ? GetMethod(_calendar_, *"dateUntil"*). - 1. Repeat, while _years_ ≠ 0, + 1. Repeat, while _years_ ≠ 0, 1. Let _newRelativeTo_ be ? CalendarDateAdd(_calendar_, _relativeTo_, _oneYear_, *undefined*, _dateAdd_). 1. Let _untilOptions_ be OrdinaryObjectCreate(*null*). 1. Perform ! CreateDataPropertyOrThrow(_untilOptions_, *"largestUnit"*, *"month"*). @@ -1311,12 +1311,12 @@

1. Else if _largestUnit_ is *"week"*, then 1. If _calendar_ is *undefined*, then 1. Throw a *RangeError* exception. - 1. Repeat, while _years_ ≠ 0, + 1. Repeat, while _years_ ≠ 0, 1. Let _moveResult_ be ? MoveRelativeDate(_calendar_, _relativeTo_, _oneYear_). 1. Set _relativeTo_ to _moveResult_.[[RelativeTo]]. 1. Set _days_ to _days_ + _moveResult_.[[Days]]. 1. Set _years_ to _years_ - _sign_. - 1. Repeat, while _months_ ≠ 0, + 1. Repeat, while _months_ ≠ 0, 1. Let _moveResult_ be ? MoveRelativeDate(_calendar_, _relativeTo_, _oneMonth_). 1. Set _relativeTo_ to _moveResult_.[[RelativeTo]]. 1. Set _days_ to _days_ + _moveResult_.[[Days]]. @@ -1325,17 +1325,17 @@

1. If any of _years_, _months_, and _weeks_ are not zero, then 1. If _calendar_ is *undefined*, then 1. Throw a *RangeError* exception. - 1. Repeat, while _years_ ≠ 0, + 1. Repeat, while _years_ ≠ 0, 1. Let _moveResult_ be ? MoveRelativeDate(_calendar_, _relativeTo_, _oneYear_). 1. Set _relativeTo_ to _moveResult_.[[RelativeTo]]. 1. Set _days_ to _days_ + _moveResult_.[[Days]]. 1. Set _years_ to _years_ - _sign_. - 1. Repeat, while _months_ ≠ 0, + 1. Repeat, while _months_ ≠ 0, 1. Let _moveResult_ be ? MoveRelativeDate(_calendar_, _relativeTo_, _oneMonth_). 1. Set _relativeTo_ to _moveResult_.[[RelativeTo]]. 1. Set _days_ to _days_ +_moveResult_.[[Days]]. 1. Set _months_ to _months_ - _sign_. - 1. Repeat, while _weeks_ ≠ 0, + 1. Repeat, while _weeks_ ≠ 0, 1. Let _moveResult_ be ? MoveRelativeDate(_calendar_, _relativeTo_, _oneWeek_). 1. Set _relativeTo_ to _moveResult_.[[RelativeTo]]. 1. Set _days_ to _days_ + _moveResult_.[[Days]]. @@ -1364,7 +1364,7 @@

1. [id="step-balance-duration-relative-early-return"] Return ! CreateDateDurationRecord(_years_, _months_, _weeks_, _days_). 1. Assert: _relativeTo_ is not *undefined*, because callers of this operation ensure _relativeTo_ is required in conditions where this algorithm does not return in step . 1. Let _sign_ be ! DurationSign(_years_, _months_, _weeks_, _days_, 0, 0, 0, 0, 0, 0). - 1. Assert: _sign_ ≠ 0. + 1. Assert: _sign_ ≠ 0. 1. Let _oneYear_ be ! CreateTemporalDuration(_sign_, 0, 0, 0, 0, 0, 0, 0, 0, 0). 1. Let _oneMonth_ be ! CreateTemporalDuration(0, _sign_, 0, 0, 0, 0, 0, 0, 0, 0). 1. Let _oneWeek_ be ! CreateTemporalDuration(0, 0, _sign_, 0, 0, 0, 0, 0, 0, 0). diff --git a/spec/instant.html b/spec/instant.html index 7e7111dd19..dae7c085ca 100644 --- a/spec/instant.html +++ b/spec/instant.html @@ -346,7 +346,7 @@

Temporal.Instant.prototype.equals ( _other_ )

1. Let _instant_ be the *this* value. 1. Perform ? RequireInternalSlot(_instant_, [[InitializedTemporalInstant]]). 1. Set _other_ to ? ToTemporalInstant(_other_). - 1. If _instant_.[[Nanoseconds]] ≠ _other_.[[Nanoseconds]], return *false*. + 1. If _instant_.[[Nanoseconds]] ≠ _other_.[[Nanoseconds]], return *false*. 1. Return *true*.
diff --git a/spec/plaindate.html b/spec/plaindate.html index c08b534a93..5e816c5715 100644 --- a/spec/plaindate.html +++ b/spec/plaindate.html @@ -427,7 +427,7 @@

Temporal.PlainDate.prototype.until ( _other_ [ , _options_ ] )

1. Let _roundingIncrement_ be ? ToTemporalRoundingIncrement(_options_, *undefined*, *false*). 1. Let _untilOptions_ be ? MergeLargestUnitOption(_options_, _largestUnit_). 1. Let _result_ be ? CalendarDateUntil(_temporalDate_.[[Calendar]], _temporalDate_, _other_, _untilOptions_). - 1. If _smallestUnit_ is not *"day"* or _roundingIncrement_ ≠ 1, then + 1. If _smallestUnit_ is not *"day"* or _roundingIncrement_ ≠ 1, then 1. Set _result_ to (? RoundDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]], _result_.[[Days]], 0, 0, 0, 0, 0, 0, _roundingIncrement_, _smallestUnit_, _roundingMode_, _temporalDate_)).[[DurationRecord]]. 1. Return ! CreateTemporalDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]], _result_.[[Days]], 0, 0, 0, 0, 0, 0).
@@ -455,7 +455,7 @@

Temporal.PlainDate.prototype.since ( _other_ [ , _options_ ] )

1. Let _roundingIncrement_ be ? ToTemporalRoundingIncrement(_options_, *undefined*, *false*). 1. Let _untilOptions_ be ? MergeLargestUnitOption(_options_, _largestUnit_). 1. Let _result_ be ? CalendarDateUntil(_temporalDate_.[[Calendar]], _temporalDate_, _other_, _untilOptions_). - 1. If _smallestUnit_ is not *"day"* or _roundingIncrement_ ≠ 1, then + 1. If _smallestUnit_ is not *"day"* or _roundingIncrement_ ≠ 1, then 1. Set _result_ to (? RoundDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]], _result_.[[Days]], 0, 0, 0, 0, 0, 0, _roundingIncrement_, _smallestUnit_, _roundingMode_, _temporalDate_)).[[DurationRecord]]. 1. Return ! CreateTemporalDuration(-_result_.[[Years]], -_result_.[[Months]], -_result_.[[Weeks]], -_result_.[[Days]], 0, 0, 0, 0, 0, 0). @@ -471,9 +471,9 @@

Temporal.PlainDate.prototype.equals ( _other_ )

1. Let _temporalDate_ be the *this* value. 1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]). 1. Set _other_ to ? ToTemporalDate(_other_). - 1. If _temporalDate_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. - 1. If _temporalDate_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. - 1. If _temporalDate_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. + 1. If _temporalDate_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. + 1. If _temporalDate_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. + 1. If _temporalDate_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. 1. Return ? CalendarEquals(_temporalDate_.[[Calendar]], _other_.[[Calendar]]). diff --git a/spec/plainmonthday.html b/spec/plainmonthday.html index 791b9a80c9..449e53562d 100644 --- a/spec/plainmonthday.html +++ b/spec/plainmonthday.html @@ -170,9 +170,9 @@

Temporal.PlainMonthDay.prototype.equals ( _other_ )

1. Let _monthDay_ be the *this* value. 1. Perform ? RequireInternalSlot(_monthDay_, [[InitializedTemporalMonthDay]]). 1. Set _other_ to ? ToTemporalMonthDay(_other_). - 1. If _monthDay_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. - 1. If _monthDay_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. - 1. If _monthDay_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. + 1. If _monthDay_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. + 1. If _monthDay_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. + 1. If _monthDay_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. 1. Return ? CalendarEquals(_monthDay_.[[Calendar]], _other_.[[Calendar]]). diff --git a/spec/plaintime.html b/spec/plaintime.html index 0c5f7181af..560edf0b94 100644 --- a/spec/plaintime.html +++ b/spec/plaintime.html @@ -368,12 +368,12 @@

Temporal.PlainTime.prototype.equals ( _other_ )

1. Let _temporalTime_ be the *this* value. 1. Perform ? RequireInternalSlot(_temporalTime_, [[InitializedTemporalTime]]). 1. Set _other_ to ? ToTemporalTime(_other_). - 1. If _temporalTime_.[[ISOHour]] ≠ _other_.[[ISOHour]], return *false*. - 1. If _temporalTime_.[[ISOMinute]] ≠ _other_.[[ISOMinute]], return *false*. - 1. If _temporalTime_.[[ISOSecond]] ≠ _other_.[[ISOSecond]], return *false*. - 1. If _temporalTime_.[[ISOMillisecond]] ≠ _other_.[[ISOMillisecond]], return *false*. - 1. If _temporalTime_.[[ISOMicrosecond]] ≠ _other_.[[ISOMicrosecond]], return *false*. - 1. If _temporalTime_.[[ISONanosecond]] ≠ _other_.[[ISONanosecond]], return *false*. + 1. If _temporalTime_.[[ISOHour]] ≠ _other_.[[ISOHour]], return *false*. + 1. If _temporalTime_.[[ISOMinute]] ≠ _other_.[[ISOMinute]], return *false*. + 1. If _temporalTime_.[[ISOSecond]] ≠ _other_.[[ISOSecond]], return *false*. + 1. If _temporalTime_.[[ISOMillisecond]] ≠ _other_.[[ISOMillisecond]], return *false*. + 1. If _temporalTime_.[[ISOMicrosecond]] ≠ _other_.[[ISOMicrosecond]], return *false*. + 1. If _temporalTime_.[[ISONanosecond]] ≠ _other_.[[ISONanosecond]], return *false*. 1. Return *true*. diff --git a/spec/plainyearmonth.html b/spec/plainyearmonth.html index 5c687d09e2..4a3bcd7219 100644 --- a/spec/plainyearmonth.html +++ b/spec/plainyearmonth.html @@ -392,9 +392,9 @@

Temporal.PlainYearMonth.prototype.equals ( _other_ )

1. Let _yearMonth_ be the *this* value. 1. Perform ? RequireInternalSlot(_yearMonth_, [[InitializedTemporalYearMonth]]). 1. Set _other_ to ? ToTemporalYearMonth(_other_). - 1. If _yearMonth_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. - 1. If _yearMonth_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. - 1. If _yearMonth_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. + 1. If _yearMonth_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*. + 1. If _yearMonth_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*. + 1. If _yearMonth_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*. 1. Return ? CalendarEquals(_yearMonth_.[[Calendar]], _other_.[[Calendar]]). diff --git a/spec/timezone.html b/spec/timezone.html index f657cee976..90a8f66cc5 100644 --- a/spec/timezone.html +++ b/spec/timezone.html @@ -578,11 +578,11 @@

FormatTimeZoneOffsetString ( _offsetNanoseconds_ )

1. Let _h_ be ToZeroPaddedDecimalString(_hours_, 2). 1. Let _m_ be ToZeroPaddedDecimalString(_minutes_, 2). 1. Let _s_ be ToZeroPaddedDecimalString(_seconds_, 2). - 1. If _nanoseconds_ ≠ 0, then + 1. If _nanoseconds_ ≠ 0, then 1. Let _fraction_ be ToZeroPaddedDecimalString(_nanoseconds_, 9). 1. Set _fraction_ to the longest possible substring of _fraction_ starting at position 0 and not ending with the code unit 0x0030 (DIGIT ZERO). 1. Let _post_ be the string-concatenation of the code unit 0x003A (COLON), _s_, the code unit 0x002E (FULL STOP), and _fraction_. - 1. Else if seconds ≠ 0, then + 1. Else if seconds ≠ 0, then 1. Let _post_ be the string-concatenation of the code unit 0x003A (COLON) and _s_. 1. Else, 1. Let _post_ be the empty String. @@ -621,7 +621,7 @@

ToTemporalTimeZone ( _temporalTimeZoneLike_ )

1. Let _parseResult_ be ? ParseTemporalTimeZoneString(_identifier_). 1. If _parseResult_.[[Name]] is not *undefined*, then 1. If ParseText(StringToCodePoints(_parseResult_.[[Name]], |TimeZoneNumericUTCOffset|)) is not a List of errors, then - 1. If _parseResult_.[[OffsetString]] is not *undefined*, and ! ParseTimeZoneOffsetString(_parseResult_.[[OffsetString]]) ≠ ! ParseTimeZoneOffsetString(_parseResult_.[[Name]]), throw a *RangeError* exception. + 1. If _parseResult_.[[OffsetString]] is not *undefined*, and ! ParseTimeZoneOffsetString(_parseResult_.[[OffsetString]]) ≠ ! ParseTimeZoneOffsetString(_parseResult_.[[Name]]), throw a *RangeError* exception. 1. Else, 1. If ! IsValidTimeZoneName(_parseResult_.[[Name]]) is *false*, throw a *RangeError* exception. 1. Return ! CreateTemporalTimeZone(! CanonicalizeTimeZoneName(_parseResult_.[[Name]])). @@ -693,7 +693,7 @@

DisambiguatePossibleInstants ( _possibleInstants_, _timeZone_, _dateTime_, _ 1. Let _n_ be _possibleInstants_'s length. 1. If _n_ = 1, then 1. Return _possibleInstants_[0]. - 1. If _n_ ≠ 0, then + 1. If _n_ ≠ 0, then 1. If _disambiguation_ is *"earlier"* or *"compatible"*, then 1. Return _possibleInstants_[0]. 1. If _disambiguation_ is *"later"*, then diff --git a/spec/zoneddatetime.html b/spec/zoneddatetime.html index 82ca2f9331..3b80f12c59 100644 --- a/spec/zoneddatetime.html +++ b/spec/zoneddatetime.html @@ -815,7 +815,7 @@

Temporal.ZonedDateTime.prototype.equals ( _other_ )

1. Let _zonedDateTime_ be the *this* value. 1. Perform ? RequireInternalSlot(_zonedDateTime_, [[InitializedTemporalZonedDateTime]]). 1. Set _other_ to ? ToTemporalZonedDateTime(_other_). - 1. If _zonedDateTime_.[[Nanoseconds]] ≠ _other_.[[Nanoseconds]], return *false*. + 1. If _zonedDateTime_.[[Nanoseconds]] ≠ _other_.[[Nanoseconds]], return *false*. 1. If ? TimeZoneEquals(_zonedDateTime_.[[TimeZone]], _other_.[[TimeZone]]) is *false*, return *false*. 1. Return ? CalendarEquals(_zonedDateTime_.[[Calendar]], _other_.[[Calendar]]).