diff --git a/spec.html b/spec.html index 4243466322..61bf21b9b1 100644 --- a/spec.html +++ b/spec.html @@ -1867,7 +1867,7 @@

1. If _x_ is *NaN*, return *NaN*. - 1. Return the result of negating _x_; that is, compute a Number with the same magnitude but opposite sign. + 1. Return the negation of _x_; that is, compute a Number with the same magnitude but opposite sign. @@ -1881,7 +1881,7 @@

1. Let _oldValue_ be ! ToInt32(_x_). - 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. + 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. @@ -5620,7 +5620,7 @@

description
-
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*.
+
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*.
1. If _argument_ is *"-0"*, return *-0*๐”ฝ. @@ -31833,7 +31833,7 @@

Math.acos ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is *NaN*, _n_ > *1*๐”ฝ, or _n_ < *-1*๐”ฝ, return *NaN*. 1. If _n_ is *1*๐”ฝ, return *+0*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the inverse cosine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse cosine of โ„(_n_).
@@ -31846,7 +31846,7 @@

Math.acosh ( _x_ )

1. If _n_ is either *NaN* or *+โˆž*๐”ฝ, return _n_. 1. If _n_ is *1*๐”ฝ, return *+0*๐”ฝ. 1. If _n_ < *1*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic cosine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse hyperbolic cosine of โ„(_n_). @@ -31858,7 +31858,7 @@

Math.asin ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is one of *NaN*, *+0*๐”ฝ, or *-0*๐”ฝ, return _n_. 1. If _n_ > *1*๐”ฝ or _n_ < *-1*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the inverse sine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse sine of โ„(_n_). @@ -31869,7 +31869,7 @@

Math.asinh ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is not finite or _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return _n_. - 1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic sine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse hyperbolic sine of โ„(_n_). @@ -31882,7 +31882,7 @@

Math.atan ( _x_ )

1. If _n_ is one of *NaN*, *+0*๐”ฝ, or *-0*๐”ฝ, return _n_. 1. If _n_ is *+โˆž*๐”ฝ, return an implementation-approximated Number value representing ฯ€ / 2. 1. If _n_ is *-โˆž*๐”ฝ, return an implementation-approximated Number value representing -ฯ€ / 2. - 1. Return an implementation-approximated Number value representing the result of the inverse tangent of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse tangent of โ„(_n_). @@ -31896,7 +31896,7 @@

Math.atanh ( _x_ )

1. If _n_ > *1*๐”ฝ or _n_ < *-1*๐”ฝ, return *NaN*. 1. If _n_ is *1*๐”ฝ, return *+โˆž*๐”ฝ. 1. If _n_ is *-1*๐”ฝ, return *-โˆž*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the inverse hyperbolic tangent of โ„(_n_). + 1. Return an implementation-approximated Number value representing the inverse hyperbolic tangent of โ„(_n_). @@ -31949,7 +31949,7 @@

Math.cbrt ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is not finite or _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return _n_. - 1. Return an implementation-approximated Number value representing the result of the cube root of โ„(_n_). + 1. Return an implementation-approximated Number value representing the cube root of โ„(_n_). @@ -31990,7 +31990,7 @@

Math.cos ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is not finite, return *NaN*. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *1*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the cosine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the cosine of โ„(_n_). @@ -32003,7 +32003,7 @@

Math.cosh ( _x_ )

1. If _n_ is *NaN*, return *NaN*. 1. If _n_ is either *+โˆž*๐”ฝ or *-โˆž*๐”ฝ, return *+โˆž*๐”ฝ. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *1*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the hyperbolic cosine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the hyperbolic cosine of โ„(_n_).

The value of `Math.cosh(x)` is the same as the value of `(Math.exp(x) + Math.exp(-x)) / 2`.

@@ -32019,7 +32019,7 @@

Math.exp ( _x_ )

1. If _n_ is either *NaN* or *+โˆž*๐”ฝ, return _n_. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *1*๐”ฝ. 1. If _n_ is *-โˆž*๐”ฝ, return *+0*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the exponential function of โ„(_n_). + 1. Return an implementation-approximated Number value representing the exponential function of โ„(_n_). @@ -32031,7 +32031,8 @@

Math.expm1 ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is one of *NaN*, *+0*๐”ฝ, *-0*๐”ฝ, or *+โˆž*๐”ฝ, return _n_. 1. If _n_ is *-โˆž*๐”ฝ, return *-1*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of subtracting 1 from the exponential function of โ„(_n_). + 1. Let _exp_ be the exponential function of โ„(_n_). + 1. Return an implementation-approximated Number value representing _exp_ - 1. @@ -32109,7 +32110,7 @@

Math.log ( _x_ )

1. If _n_ is *1*๐”ฝ, return *+0*๐”ฝ. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *-โˆž*๐”ฝ. 1. If _n_ < *-0*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the natural logarithm of โ„(_n_). + 1. Return an implementation-approximated Number value representing the natural logarithm of โ„(_n_). @@ -32122,7 +32123,7 @@

Math.log1p ( _x_ )

1. If _n_ is one of *NaN*, *+0*๐”ฝ, *-0*๐”ฝ, or *+โˆž*๐”ฝ, return _n_. 1. If _n_ is *-1*๐”ฝ, return *-โˆž*๐”ฝ. 1. If _n_ < *-1*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the natural logarithm of 1 + โ„(_n_). + 1. Return an implementation-approximated Number value representing the natural logarithm of 1 + โ„(_n_). @@ -32136,7 +32137,7 @@

Math.log10 ( _x_ )

1. If _n_ is *1*๐”ฝ, return *+0*๐”ฝ. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *-โˆž*๐”ฝ. 1. If _n_ < *-0*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the base 10 logarithm of โ„(_n_). + 1. Return an implementation-approximated Number value representing the base 10 logarithm of โ„(_n_). @@ -32150,7 +32151,7 @@

Math.log2 ( _x_ )

1. If _n_ is *1*๐”ฝ, return *+0*๐”ฝ. 1. If _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return *-โˆž*๐”ฝ. 1. If _n_ < *-0*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the base 2 logarithm of โ„(_n_). + 1. Return an implementation-approximated Number value representing the base 2 logarithm of โ„(_n_). @@ -32253,7 +32254,7 @@

Math.sin ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is one of *NaN*, *+0*๐”ฝ, or *-0*๐”ฝ, return _n_. 1. If _n_ is either *+โˆž*๐”ฝ or *-โˆž*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the sine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the sine of โ„(_n_). @@ -32264,7 +32265,7 @@

Math.sinh ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is not finite or _n_ is either *+0*๐”ฝ or *-0*๐”ฝ, return _n_. - 1. Return an implementation-approximated Number value representing the result of the hyperbolic sine of โ„(_n_). + 1. Return an implementation-approximated Number value representing the hyperbolic sine of โ„(_n_).

The value of `Math.sinh(x)` is the same as the value of `(Math.exp(x) - Math.exp(-x)) / 2`.

@@ -32279,7 +32280,7 @@

Math.sqrt ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is one of *NaN*, *+0*๐”ฝ, *-0*๐”ฝ, or *+โˆž*๐”ฝ, return _n_. 1. If _n_ < *-0*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the square root of โ„(_n_). + 1. Return an implementation-approximated Number value representing the square root of โ„(_n_). @@ -32291,7 +32292,7 @@

Math.tan ( _x_ )

1. Let _n_ be ? ToNumber(_x_). 1. If _n_ is one of *NaN*, *+0*๐”ฝ, or *-0*๐”ฝ, return _n_. 1. If _n_ is either *+โˆž*๐”ฝ or *-โˆž*๐”ฝ, return *NaN*. - 1. Return an implementation-approximated Number value representing the result of the tangent of โ„(_n_). + 1. Return an implementation-approximated Number value representing the tangent of โ„(_n_). @@ -32304,7 +32305,7 @@

Math.tanh ( _x_ )

1. If _n_ is one of *NaN*, *+0*๐”ฝ, or *-0*๐”ฝ, return _n_. 1. If _n_ is *+โˆž*๐”ฝ, return *1*๐”ฝ. 1. If _n_ is *-โˆž*๐”ฝ, return *-1*๐”ฝ. - 1. Return an implementation-approximated Number value representing the result of the hyperbolic tangent of โ„(_n_). + 1. Return an implementation-approximated Number value representing the hyperbolic tangent of โ„(_n_).

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))`.

@@ -35267,7 +35268,7 @@

String.prototype.toLowerCase ( )

1. Let _O_ be ? RequireObjectCoercible(*this* value). 1. Let _S_ be ? ToString(_O_). 1. Let _sText_ be StringToCodePoints(_S_). - 1. Let _lowerText_ be the result of toLowercase(_sText_), according to the Unicode Default Case Conversion algorithm. + 1. Let _lowerText_ be toLowercase(_sText_), according to the Unicode Default Case Conversion algorithm. 1. Let _L_ be CodePointsToString(_lowerText_). 1. Return _L_. @@ -37100,7 +37101,7 @@

1. If _rer_.[[IgnoreCase]] is *false*, return _ch_. 1. Assert: _ch_ is a UTF-16 code unit. 1. Let _cp_ be the code point whose numeric value is the numeric value of _ch_. - 1. Let _u_ be the result of toUppercase(ยซ _cp_ ยป), according to the Unicode Default Case Conversion algorithm. + 1. Let _u_ be toUppercase(ยซ _cp_ ยป), according to the Unicode Default Case Conversion algorithm. 1. Let _uStr_ be CodePointsToString(_u_). 1. If the length of _uStr_ โ‰  1, return _ch_. 1. Let _cu_ be _uStr_'s single code unit element. @@ -39473,7 +39474,7 @@

Array.prototype.reduceRight ( _callbackfn_ [ , _initialValue_ ] )

Array.prototype.reverse ( )

-

This method rearranges the elements of the array so as to reverse their order. It returns the object as the result of the call.

+

This method rearranges the elements of the array so as to reverse their order. It returns the reversed array.

This method performs the following steps when called:

@@ -45080,7 +45081,7 @@

description
-
_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.
+
_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.
1. Let _byteIndexInBuffer_ be ? ValidateAtomicAccessOnIntegerTypedArray(_typedArray_, _index_).