From bdf6f83ccf35e5aa3f3562256c32d91d60482889 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Mon, 22 Aug 2022 16:35:56 -0600 Subject: [PATCH] start changing phrasing --- spec.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/spec.html b/spec.html index 6648cda74f..adbf732c8b 100644 --- a/spec.html +++ b/spec.html @@ -1105,11 +1105,11 @@

1. Let _searchLen_ be the length of _searchValue_. 1. For each integer _i_ starting with _fromIndex_ such that _i_ ≤ _len_ - _searchLen_, in ascending order, do 1. Let _candidate_ be the substring of _string_ from _i_ to _i_ + _searchLen_. - 1. If _candidate_ is the same sequence of code units as _searchValue_, return _i_. + 1. If _candidate_ is _searchValue_, return _i_. 1. Return -1. -

If _searchValue_ is the empty String and _fromIndex_ is less than or equal to the length of _string_, this algorithm returns _fromIndex_. The empty String is effectively found at every position within a string, including after the last code unit.

+

If _searchValue_ is the empty String and _fromIndex_ ≤ the length of _string_, this algorithm returns _fromIndex_. The empty String is effectively found at every position within a string, including after the last code unit.

This algorithm always returns -1 if _fromIndex_ > the length of _string_.

@@ -1841,11 +1841,11 @@

1. Assert: _base_ is finite and is neither *+0*𝔽 nor *-0*𝔽. 1. If _exponent_ is *+∞*𝔽, then 1. If abs(ℝ(_base_)) > 1, return *+∞*𝔽. - 1. If abs(ℝ(_base_)) is 1, return *NaN*. + 1. If abs(ℝ(_base_)) = 1, return *NaN*. 1. If abs(ℝ(_base_)) < 1, return *+0*𝔽. 1. If _exponent_ is *-∞*𝔽, then 1. If abs(ℝ(_base_)) > 1, return *+0*𝔽. - 1. If abs(ℝ(_base_)) is 1, return *NaN*. + 1. If abs(ℝ(_base_)) = 1, return *NaN*. 1. If abs(ℝ(_base_)) < 1, return *+∞*𝔽. 1. Assert: _exponent_ is finite and is neither *+0*𝔽 nor *-0*𝔽. 1. If _base_ < *-0*𝔽 and _exponent_ is not an integral Number, return *NaN*. @@ -1942,7 +1942,7 @@

1. If _n_ is *+0*𝔽 or _n_ is *-0*𝔽, return _n_. 1. Assert: _n_ and _d_ are finite and non-zero. 1. Let _r_ be ℝ(_n_) - (ℝ(_d_) × _q_) where _q_ is an integer that is negative if and only if _n_ and _d_ have opposite sign, and whose magnitude is as large as possible without exceeding the magnitude of ℝ(_n_) / ℝ(_d_). - 1. If _r_ is 0 and _n_ < *-0*𝔽, return *-0*𝔽. + 1. If _r_ = 0 and _n_ < *-0*𝔽, return *-0*𝔽. 1. Return 𝔽(_r_). @@ -2059,7 +2059,7 @@

1. If _x_ is *NaN*, return *undefined*. 1. If _y_ is *NaN*, return *undefined*. - 1. If _x_ and _y_ are the same Number value, return *false*. + 1. If _x_ is _y_, return *false*. 1. If _x_ is *+0*𝔽 and _y_ is *-0*𝔽, return *false*. 1. If _x_ is *-0*𝔽 and _y_ is *+0*𝔽, return *false*. 1. If _x_ is *+∞*𝔽, return *false*. @@ -2083,7 +2083,7 @@

1. If _x_ is *NaN*, return *false*. 1. If _y_ is *NaN*, return *false*. - 1. If _x_ is the same Number value as _y_, return *true*. + 1. If _x_ is _y_, return *true*. 1. If _x_ is *+0*𝔽 and _y_ is *-0*𝔽, return *true*. 1. If _x_ is *-0*𝔽 and _y_ is *+0*𝔽, return *true*. 1. Return *false*. @@ -2103,7 +2103,7 @@

1. If _x_ is *NaN* and _y_ is *NaN*, return *true*. 1. If _x_ is *+0*𝔽 and _y_ is *-0*𝔽, return *false*. 1. If _x_ is *-0*𝔽 and _y_ is *+0*𝔽, return *false*. - 1. If _x_ is the same Number value as _y_, return *true*. + 1. If _x_ is _y_, return *true*. 1. Return *false*. @@ -2121,7 +2121,7 @@

1. If _x_ is *NaN* and _y_ is *NaN*, return *true*. 1. If _x_ is *+0*𝔽 and _y_ is *-0*𝔽, return *true*. 1. If _x_ is *-0*𝔽 and _y_ is *+0*𝔽, return *true*. - 1. If _x_ is the same Number value as _y_, return *true*. + 1. If _x_ is _y_, return *true*. 1. Return *false*. @@ -2230,7 +2230,7 @@

1. Let _exponentSign_ be the code unit 0x002D (HYPHEN-MINUS). 1. Else, 1. Let _exponentSign_ be the code unit 0x002B (PLUS SIGN). - 1. If _k_ is 1, then + 1. If _k_ = 1, then 1. Return the string-concatenation of: * the code unit of the single digit of _s_ * the code unit 0x0065 (LATIN SMALL LETTER E) @@ -2248,7 +2248,7 @@

The following observations may be useful as guidelines for implementations, but are not part of the normative requirements of this Standard:

  • - If x is any Number value other than *-0*𝔽, then ToNumber(ToString(x)) is exactly the same Number value as x. + If x is any Number value other than *-0*𝔽, then ToNumber(ToString(x)) is x.
  • The least significant digit of s is not always uniquely determined by the requirements listed in step . @@ -2368,7 +2368,7 @@

    1. Let _r_ be the BigInt defined by the mathematical relation _r_ = _n_ - (_d_ × _q_) where _q_ is a BigInt that is negative only if _n_/_d_ is negative and positive only if _n_/_d_ is positive, and whose magnitude is as large as possible without exceeding the magnitude of the true mathematical quotient of _n_ and _d_. 1. Return _r_. - The sign of the result equals the sign of the dividend. + The sign of the result is the sign of the dividend. @@ -2510,7 +2510,7 @@

    - 1. If _x_ is 1 and _y_ is 1, return 1. + 1. If _x_ = 1 and _y_ = 1, return 1. 1. Else, return 0. @@ -2525,7 +2525,7 @@

    - 1. If _x_ is 1 or _y_ is 1, return 1. + 1. If _x_ = 1 or _y_ = 1, return 1. 1. Else, return 0. @@ -2540,8 +2540,8 @@

    - 1. If _x_ is 1 and _y_ is 0, return 1. - 1. Else if _x_ is 0 and _y_ is 1, return 1. + 1. If _x_ = 1 and _y_ = 0, return 1. + 1. Else if _x_ = 0 and _y_ = 1, return 1. 1. Else, return 0. @@ -3961,7 +3961,7 @@

    The Set and Relation Specification Types

  • For all _a_, _b_, and _c_ in _R_'s domain:

      -
    • _a_ is identical to _b_ or _a_ _R_ _b_ or _b_ _R_ _a_, and
    • +
    • _a_ is _b_ or _a_ _R_ _b_ or _b_ _R_ _a_, and
    • It is not the case that _a_ _R_ _a_, and
    • If _a_ _R_ _b_ and _b_ _R_ _c_, then _a_ _R_ _c_.
    @@ -4899,7 +4899,7 @@

    BigInt - If _argument_ is *0*, return *false*; otherwise return *true*. + If _argument_ = *0*, return *false*; otherwise return *true*. @@ -5776,7 +5776,7 @@

    1. If _argument_ is *"-0"*, return *-0*𝔽. 1. Let _n_ be ! ToNumber(_argument_). - 1. If SameValue(! ToString(_n_), _argument_) is *true*, return _n_. + 1. If ! ToString(_n_) is _argument_, return _n_. 1. Return *undefined*.

    A canonical numeric string is any String value for which the CanonicalNumericIndexString abstract operation does not return *undefined*.

    @@ -5977,8 +5977,8 @@

    1. If Type(_argument_) is not Number, return *false*. 1. If _argument_ is *NaN*, *+∞*𝔽, or *-∞*𝔽, return *false*. - 1. If floor(abs(ℝ(_argument_))) ≠ abs(ℝ(_argument_)), return *false*. - 1. Return *true*. + 1. If floor(abs(ℝ(_argument_))) = abs(ℝ(_argument_)), return *true*. + 1. Return *false*.