Skip to content

Commit 7d0b199

Browse files
michaelficarraljharb
authored andcommitted
Editorial: remove some unnecessary "the result of" phrasing (#3346)
1 parent e3692a9 commit 7d0b199

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

spec.html

+28-27
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ <h1>
18671867
</dl>
18681868
<emu-alg>
18691869
1. If _x_ is *NaN*, return *NaN*.
1870-
1. Return the result of negating _x_; that is, compute a Number with the same magnitude but opposite sign.
1870+
1. Return the negation of _x_; that is, compute a Number with the same magnitude but opposite sign.
18711871
</emu-alg>
18721872
</emu-clause>
18731873

@@ -1881,7 +1881,7 @@ <h1>
18811881
</dl>
18821882
<emu-alg>
18831883
1. Let _oldValue_ be ! ToInt32(_x_).
1884-
1. Return the result of applying bitwise complement to _oldValue_. The mathematical value of the result is exactly representable as a 32-bit two's complement bit string.
1884+
1. Return the bitwise complement of _oldValue_. The mathematical value of the result is exactly representable as a 32-bit two's complement bit string.
18851885
</emu-alg>
18861886
</emu-clause>
18871887

@@ -5620,7 +5620,7 @@ <h1>
56205620
</h1>
56215621
<dl class="header">
56225622
<dt>description</dt>
5623-
<dd>If _argument_ is either *"-0"* or exactly matches the result of ToString(_n_) for some Number value _n_, it returns the respective Number value. Otherwise, it returns *undefined*.</dd>
5623+
<dd>If _argument_ is either *"-0"* or exactly matches ToString(_n_) for some Number value _n_, it returns the respective Number value. Otherwise, it returns *undefined*.</dd>
56245624
</dl>
56255625
<emu-alg>
56265626
1. If _argument_ is *"-0"*, return *-0*<sub>𝔽</sub>.
@@ -31833,7 +31833,7 @@ <h1>Math.acos ( _x_ )</h1>
3183331833
1. Let _n_ be ? ToNumber(_x_).
3183431834
1. If _n_ is *NaN*, _n_ > *1*<sub>𝔽</sub>, or _n_ &lt; *-1*<sub>𝔽</sub>, return *NaN*.
3183531835
1. If _n_ is *1*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
31836-
1. Return an implementation-approximated Number value representing the result of the inverse cosine of ℝ(_n_).
31836+
1. Return an implementation-approximated Number value representing the inverse cosine of ℝ(_n_).
3183731837
</emu-alg>
3183831838
</emu-clause>
3183931839

@@ -31846,7 +31846,7 @@ <h1>Math.acosh ( _x_ )</h1>
3184631846
1. If _n_ is either *NaN* or *+∞*<sub>𝔽</sub>, return _n_.
3184731847
1. If _n_ is *1*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
3184831848
1. If _n_ &lt; *1*<sub>𝔽</sub>, return *NaN*.
31849-
1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic cosine of ℝ(_n_).
31849+
1. Return an implementation-approximated Number value representing the inverse hyperbolic cosine of ℝ(_n_).
3185031850
</emu-alg>
3185131851
</emu-clause>
3185231852

@@ -31858,7 +31858,7 @@ <h1>Math.asin ( _x_ )</h1>
3185831858
1. Let _n_ be ? ToNumber(_x_).
3185931859
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, or *-0*<sub>𝔽</sub>, return _n_.
3186031860
1. If _n_ > *1*<sub>𝔽</sub> or _n_ &lt; *-1*<sub>𝔽</sub>, return *NaN*.
31861-
1. Return an implementation-approximated Number value representing the result of the inverse sine of ℝ(_n_).
31861+
1. Return an implementation-approximated Number value representing the inverse sine of ℝ(_n_).
3186231862
</emu-alg>
3186331863
</emu-clause>
3186431864

@@ -31869,7 +31869,7 @@ <h1>Math.asinh ( _x_ )</h1>
3186931869
<emu-alg>
3187031870
1. Let _n_ be ? ToNumber(_x_).
3187131871
1. If _n_ is not finite or _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return _n_.
31872-
1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic sine of ℝ(_n_).
31872+
1. Return an implementation-approximated Number value representing the inverse hyperbolic sine of ℝ(_n_).
3187331873
</emu-alg>
3187431874
</emu-clause>
3187531875

@@ -31882,7 +31882,7 @@ <h1>Math.atan ( _x_ )</h1>
3188231882
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, or *-0*<sub>𝔽</sub>, return _n_.
3188331883
1. If _n_ is *+∞*<sub>𝔽</sub>, return an implementation-approximated Number value representing π / 2.
3188431884
1. If _n_ is *-∞*<sub>𝔽</sub>, return an implementation-approximated Number value representing -π / 2.
31885-
1. Return an implementation-approximated Number value representing the result of the inverse tangent of ℝ(_n_).
31885+
1. Return an implementation-approximated Number value representing the inverse tangent of ℝ(_n_).
3188631886
</emu-alg>
3188731887
</emu-clause>
3188831888

@@ -31896,7 +31896,7 @@ <h1>Math.atanh ( _x_ )</h1>
3189631896
1. If _n_ > *1*<sub>𝔽</sub> or _n_ &lt; *-1*<sub>𝔽</sub>, return *NaN*.
3189731897
1. If _n_ is *1*<sub>𝔽</sub>, return *+∞*<sub>𝔽</sub>.
3189831898
1. If _n_ is *-1*<sub>𝔽</sub>, return *-∞*<sub>𝔽</sub>.
31899-
1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic tangent of ℝ(_n_).
31899+
1. Return an implementation-approximated Number value representing the inverse hyperbolic tangent of ℝ(_n_).
3190031900
</emu-alg>
3190131901
</emu-clause>
3190231902

@@ -31949,7 +31949,7 @@ <h1>Math.cbrt ( _x_ )</h1>
3194931949
<emu-alg>
3195031950
1. Let _n_ be ? ToNumber(_x_).
3195131951
1. If _n_ is not finite or _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return _n_.
31952-
1. Return an implementation-approximated Number value representing the result of the cube root of ℝ(_n_).
31952+
1. Return an implementation-approximated Number value representing the cube root of ℝ(_n_).
3195331953
</emu-alg>
3195431954
</emu-clause>
3195531955

@@ -31990,7 +31990,7 @@ <h1>Math.cos ( _x_ )</h1>
3199031990
1. Let _n_ be ? ToNumber(_x_).
3199131991
1. If _n_ is not finite, return *NaN*.
3199231992
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *1*<sub>𝔽</sub>.
31993-
1. Return an implementation-approximated Number value representing the result of the cosine of ℝ(_n_).
31993+
1. Return an implementation-approximated Number value representing the cosine of ℝ(_n_).
3199431994
</emu-alg>
3199531995
</emu-clause>
3199631996

@@ -32003,7 +32003,7 @@ <h1>Math.cosh ( _x_ )</h1>
3200332003
1. If _n_ is *NaN*, return *NaN*.
3200432004
1. If _n_ is either *+∞*<sub>𝔽</sub> or *-∞*<sub>𝔽</sub>, return *+∞*<sub>𝔽</sub>.
3200532005
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *1*<sub>𝔽</sub>.
32006-
1. Return an implementation-approximated Number value representing the result of the hyperbolic cosine of ℝ(_n_).
32006+
1. Return an implementation-approximated Number value representing the hyperbolic cosine of ℝ(_n_).
3200732007
</emu-alg>
3200832008
<emu-note>
3200932009
<p>The value of `Math.cosh(x)` is the same as the value of `(Math.exp(x) + Math.exp(-x)) / 2`.</p>
@@ -32019,7 +32019,7 @@ <h1>Math.exp ( _x_ )</h1>
3201932019
1. If _n_ is either *NaN* or *+∞*<sub>𝔽</sub>, return _n_.
3202032020
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *1*<sub>𝔽</sub>.
3202132021
1. If _n_ is *-∞*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
32022-
1. Return an implementation-approximated Number value representing the result of the exponential function of ℝ(_n_).
32022+
1. Return an implementation-approximated Number value representing the exponential function of ℝ(_n_).
3202332023
</emu-alg>
3202432024
</emu-clause>
3202532025

@@ -32031,7 +32031,8 @@ <h1>Math.expm1 ( _x_ )</h1>
3203132031
1. Let _n_ be ? ToNumber(_x_).
3203232032
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, *-0*<sub>𝔽</sub>, or *+∞*<sub>𝔽</sub>, return _n_.
3203332033
1. If _n_ is *-∞*<sub>𝔽</sub>, return *-1*<sub>𝔽</sub>.
32034-
1. Return an implementation-approximated Number value representing the result of subtracting 1 from the exponential function of ℝ(_n_).
32034+
1. Let _exp_ be the exponential function of ℝ(_n_).
32035+
1. Return an implementation-approximated Number value representing _exp_ - 1.
3203532036
</emu-alg>
3203632037
</emu-clause>
3203732038

@@ -32109,7 +32110,7 @@ <h1>Math.log ( _x_ )</h1>
3210932110
1. If _n_ is *1*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
3211032111
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *-∞*<sub>𝔽</sub>.
3211132112
1. If _n_ &lt; *-0*<sub>𝔽</sub>, return *NaN*.
32112-
1. Return an implementation-approximated Number value representing the result of the natural logarithm of ℝ(_n_).
32113+
1. Return an implementation-approximated Number value representing the natural logarithm of ℝ(_n_).
3211332114
</emu-alg>
3211432115
</emu-clause>
3211532116

@@ -32122,7 +32123,7 @@ <h1>Math.log1p ( _x_ )</h1>
3212232123
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, *-0*<sub>𝔽</sub>, or *+∞*<sub>𝔽</sub>, return _n_.
3212332124
1. If _n_ is *-1*<sub>𝔽</sub>, return *-∞*<sub>𝔽</sub>.
3212432125
1. If _n_ &lt; *-1*<sub>𝔽</sub>, return *NaN*.
32125-
1. Return an implementation-approximated Number value representing the result of the natural logarithm of 1 + ℝ(_n_).
32126+
1. Return an implementation-approximated Number value representing the natural logarithm of 1 + ℝ(_n_).
3212632127
</emu-alg>
3212732128
</emu-clause>
3212832129

@@ -32136,7 +32137,7 @@ <h1>Math.log10 ( _x_ )</h1>
3213632137
1. If _n_ is *1*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
3213732138
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *-∞*<sub>𝔽</sub>.
3213832139
1. If _n_ &lt; *-0*<sub>𝔽</sub>, return *NaN*.
32139-
1. Return an implementation-approximated Number value representing the result of the base 10 logarithm of ℝ(_n_).
32140+
1. Return an implementation-approximated Number value representing the base 10 logarithm of ℝ(_n_).
3214032141
</emu-alg>
3214132142
</emu-clause>
3214232143

@@ -32150,7 +32151,7 @@ <h1>Math.log2 ( _x_ )</h1>
3215032151
1. If _n_ is *1*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
3215132152
1. If _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return *-∞*<sub>𝔽</sub>.
3215232153
1. If _n_ &lt; *-0*<sub>𝔽</sub>, return *NaN*.
32153-
1. Return an implementation-approximated Number value representing the result of the base 2 logarithm of ℝ(_n_).
32154+
1. Return an implementation-approximated Number value representing the base 2 logarithm of ℝ(_n_).
3215432155
</emu-alg>
3215532156
</emu-clause>
3215632157

@@ -32253,7 +32254,7 @@ <h1>Math.sin ( _x_ )</h1>
3225332254
1. Let _n_ be ? ToNumber(_x_).
3225432255
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, or *-0*<sub>𝔽</sub>, return _n_.
3225532256
1. If _n_ is either *+∞*<sub>𝔽</sub> or *-∞*<sub>𝔽</sub>, return *NaN*.
32256-
1. Return an implementation-approximated Number value representing the result of the sine of ℝ(_n_).
32257+
1. Return an implementation-approximated Number value representing the sine of ℝ(_n_).
3225732258
</emu-alg>
3225832259
</emu-clause>
3225932260

@@ -32264,7 +32265,7 @@ <h1>Math.sinh ( _x_ )</h1>
3226432265
<emu-alg>
3226532266
1. Let _n_ be ? ToNumber(_x_).
3226632267
1. If _n_ is not finite or _n_ is either *+0*<sub>𝔽</sub> or *-0*<sub>𝔽</sub>, return _n_.
32267-
1. Return an implementation-approximated Number value representing the result of the hyperbolic sine of ℝ(_n_).
32268+
1. Return an implementation-approximated Number value representing the hyperbolic sine of ℝ(_n_).
3226832269
</emu-alg>
3226932270
<emu-note>
3227032271
<p>The value of `Math.sinh(x)` is the same as the value of `(Math.exp(x) - Math.exp(-x)) / 2`.</p>
@@ -32279,7 +32280,7 @@ <h1>Math.sqrt ( _x_ )</h1>
3227932280
1. Let _n_ be ? ToNumber(_x_).
3228032281
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, *-0*<sub>𝔽</sub>, or *+∞*<sub>𝔽</sub>, return _n_.
3228132282
1. If _n_ &lt; *-0*<sub>𝔽</sub>, return *NaN*.
32282-
1. Return an implementation-approximated Number value representing the result of the square root of ℝ(_n_).
32283+
1. Return an implementation-approximated Number value representing the square root of ℝ(_n_).
3228332284
</emu-alg>
3228432285
</emu-clause>
3228532286

@@ -32291,7 +32292,7 @@ <h1>Math.tan ( _x_ )</h1>
3229132292
1. Let _n_ be ? ToNumber(_x_).
3229232293
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, or *-0*<sub>𝔽</sub>, return _n_.
3229332294
1. If _n_ is either *+∞*<sub>𝔽</sub> or *-∞*<sub>𝔽</sub>, return *NaN*.
32294-
1. Return an implementation-approximated Number value representing the result of the tangent of ℝ(_n_).
32295+
1. Return an implementation-approximated Number value representing the tangent of ℝ(_n_).
3229532296
</emu-alg>
3229632297
</emu-clause>
3229732298

@@ -32304,7 +32305,7 @@ <h1>Math.tanh ( _x_ )</h1>
3230432305
1. If _n_ is one of *NaN*, *+0*<sub>𝔽</sub>, or *-0*<sub>𝔽</sub>, return _n_.
3230532306
1. If _n_ is *+∞*<sub>𝔽</sub>, return *1*<sub>𝔽</sub>.
3230632307
1. If _n_ is *-∞*<sub>𝔽</sub>, return *-1*<sub>𝔽</sub>.
32307-
1. Return an implementation-approximated Number value representing the result of the hyperbolic tangent of ℝ(_n_).
32308+
1. Return an implementation-approximated Number value representing the hyperbolic tangent of ℝ(_n_).
3230832309
</emu-alg>
3230932310
<emu-note>
3231032311
<p>The value of `Math.tanh(x)` is the same as the value of `(Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x))`.</p>
@@ -35267,7 +35268,7 @@ <h1>String.prototype.toLowerCase ( )</h1>
3526735268
1. Let _O_ be ? RequireObjectCoercible(*this* value).
3526835269
1. Let _S_ be ? ToString(_O_).
3526935270
1. Let _sText_ be StringToCodePoints(_S_).
35270-
1. Let _lowerText_ be the result of toLowercase(_sText_), according to the Unicode Default Case Conversion algorithm.
35271+
1. Let _lowerText_ be toLowercase(_sText_), according to the Unicode Default Case Conversion algorithm.
3527135272
1. Let _L_ be CodePointsToString(_lowerText_).
3527235273
1. Return _L_.
3527335274
</emu-alg>
@@ -37100,7 +37101,7 @@ <h1>
3710037101
1. If _rer_.[[IgnoreCase]] is *false*, return _ch_.
3710137102
1. Assert: _ch_ is a UTF-16 code unit.
3710237103
1. Let _cp_ be the code point whose numeric value is the numeric value of _ch_.
37103-
1. Let _u_ be the result of toUppercase(« _cp_ »), according to the Unicode Default Case Conversion algorithm.
37104+
1. Let _u_ be toUppercase(« _cp_ »), according to the Unicode Default Case Conversion algorithm.
3710437105
1. Let _uStr_ be CodePointsToString(_u_).
3710537106
1. If the length of _uStr_ ≠ 1, return _ch_.
3710637107
1. Let _cu_ be _uStr_'s single code unit element.
@@ -39473,7 +39474,7 @@ <h1>Array.prototype.reduceRight ( _callbackfn_ [ , _initialValue_ ] )</h1>
3947339474
<emu-clause id="sec-array.prototype.reverse">
3947439475
<h1>Array.prototype.reverse ( )</h1>
3947539476
<emu-note>
39476-
<p>This method rearranges the elements of the array so as to reverse their order. It returns the object as the result of the call.</p>
39477+
<p>This method rearranges the elements of the array so as to reverse their order. It returns the reversed array.</p>
3947739478
</emu-note>
3947839479
<p>This method performs the following steps when called:</p>
3947939480
<emu-alg>
@@ -45080,7 +45081,7 @@ <h1>
4508045081
</h1>
4508145082
<dl class="header">
4508245083
<dt>description</dt>
45083-
<dd>_op_ takes two List of byte values arguments and returns a List of byte values. This operation atomically loads a value, combines it with another value, and stores the result of the combination. It returns the loaded value.</dd>
45084+
<dd>_op_ takes two List of byte values arguments and returns a List of byte values. This operation atomically loads a value, combines it with another value, and stores the combination. It returns the loaded value.</dd>
4508445085
</dl>
4508545086
<emu-alg>
4508645087
1. Let _byteIndexInBuffer_ be ? ValidateAtomicAccessOnIntegerTypedArray(_typedArray_, _index_).

0 commit comments

Comments
 (0)