diff --git a/spec.html b/spec.html index 0803a38cee5..cb530d4ae0c 100644 --- a/spec.html +++ b/spec.html @@ -1924,31 +1924,31 @@
If _n_ is 0, _p_ will be 32. If the most significant bit of the 32-bit binary encoding of _n_ is 1, _p_ will be 0.
+If _n_ is *+0*, _p_ will be 32. If the most significant bit of the 32-bit binary encoding of _n_ is 1, _p_ will be *+0*.
A time value determines a year by:
The leap-year function is 1 for a time within a leap year and otherwise is zero:
+The leap-year function is *1* for a time within a leap year and otherwise is *+0*:
The `parse` function applies the ToString operator to its argument. If ToString results in an abrupt completion the Completion Record is immediately returned. Otherwise, `parse` interprets the resulting String as a date and time; it returns a Number, the UTC time value corresponding to the date and time. The String may be interpreted as a local time, a UTC time, or a time in some other time zone, depending on the contents of the String. The function first attempts to parse the String according to the format described in Date Time String Format (
If the String conforms to the
If `x` is any Date object whose milliseconds amount is zero within a particular implementation of ECMAScript, then all of the following expressions should produce the same numeric value in that implementation, if all the properties referenced have their initial values:
+If `x` is any Date object whose milliseconds amount is *±0* within a particular implementation of ECMAScript, then all of the following expressions should produce the same numeric value in that implementation, if all the properties referenced have their initial values:
x.valueOf()
Date.parse(x.toString())
@@ -29001,7 +29001,7 @@ Date.prototype.toString ( )
1. Return ToDateString(_tv_).
- For any Date object `d` whose milliseconds amount is zero, the result of `Date.parse(d.toString())` is equal to `d.valueOf()`. See .
+ For any Date object `d` whose milliseconds amount is *±0*, the result of `Date.parse(d.toString())` is equal to `d.valueOf()`. See .
The `toString` function is not generic; it throws a *TypeError* exception if its *this* value is not a Date object. Therefore, it cannot be transferred to other kinds of objects for use as a method.
@@ -29360,7 +29360,7 @@ String.fromCharCode ( ..._codeUnits_ )
1. Let _nextCU_ be ? ToUint16(_next_).
1. Append _nextCU_ to the end of _elements_.
1. Set _nextIndex_ to _nextIndex_ + 1.
- 1. Return the String value whose code units are, in order, the elements in the List _elements_. If _length_ is 0, the empty string is returned.
+ 1. Return the String value whose code units are, in order, the elements in the List _elements_. If _length_ is *+0*, the empty string is returned.
The `"length"` property of the `fromCharCode` function is 1.
@@ -29380,7 +29380,7 @@ String.fromCodePoint ( ..._codePoints_ )
1. If _nextCP_ < 0 or _nextCP_ > 0x10FFFF, throw a *RangeError* exception.
1. Append the elements of the UTF16Encoding of _nextCP_ to the end of _elements_.
1. Set _nextIndex_ to _nextIndex_ + 1.
- 1. Return the String value whose code units are, in order, the elements in the List _elements_. If _length_ is 0, the empty string is returned.
+ 1. Return the String value whose code units are, in order, the elements in the List _elements_. If _length_ is *+0*, the empty string is returned.
The `"length"` property of the `fromCodePoint` function is 1.
@@ -29428,7 +29428,7 @@ Properties of the String Prototype Object
is the intrinsic object %StringPrototype%.
is a String exotic object and has the internal methods specified for such objects.
has a [[StringData]] internal slot whose value is the empty String.
- has a `"length"` property whose initial value is 0 and whose attributes are { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.
+ has a `"length"` property whose initial value is *+0* and whose attributes are { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.
has a [[Prototype]] internal slot whose value is %Object.prototype%.
Unless explicitly stated otherwise, the methods of the String prototype object defined below are not generic and the *this* value passed to them must be either a String value or an object that has a [[StringData]] internal slot that has been initialized to a String value.
@@ -29568,7 +29568,7 @@ String.prototype.includes ( _searchString_ [ , _position_ ] )
1. If _isRegExp_ is *true*, throw a *TypeError* exception.
1. Let _searchStr_ be ? ToString(_searchString_).
1. Let _pos_ be ? ToInteger(_position_).
- 1. Assert: If _position_ is *undefined*, then _pos_ is 0.
+ 1. Assert: If _position_ is *undefined*, then _pos_ is *+0*.
1. Let _len_ be the length of _S_.
1. Let _start_ be min(max(_pos_, 0), _len_).
1. Let _searchLen_ be the length of _searchStr_.
@@ -29596,7 +29596,7 @@ String.prototype.indexOf ( _searchString_ [ , _position_ ] )
1. Let _S_ be ? ToString(_O_).
1. Let _searchStr_ be ? ToString(_searchString_).
1. Let _pos_ be ? ToInteger(_position_).
- 1. Assert: If _position_ is *undefined*, then _pos_ is 0.
+ 1. Assert: If _position_ is *undefined*, then _pos_ is *+0*.
1. Let _len_ be the length of _S_.
1. Let _start_ be min(max(_pos_, 0), _len_).
1. Let _searchLen_ be the length of _searchStr_.
@@ -29766,7 +29766,7 @@ String.prototype.repeat ( _count_ )
1. Let _n_ be ? ToInteger(_count_).
1. If _n_ < 0, throw a *RangeError* exception.
1. If _n_ is *+∞*, throw a *RangeError* exception.
- 1. If _n_ is 0, return the empty String.
+ 1. If _n_ is *±0*, return the empty String.
1. Return the String value that is made from _n_ copies of _S_ appended together.
@@ -29799,7 +29799,7 @@ String.prototype.replace ( _searchValue_, _replaceValue_ )
1. Let _captures_ be a new empty List.
1. Let _replStr_ be GetSubstitution(_matched_, _string_, _pos_, _captures_, *undefined*, _replaceValue_).
1. Let _tailPos_ be _pos_ + the number of code units in _matched_.
- 1. Let _newString_ be the string-concatenation of the first _pos_ code units of _string_, _replStr_, and the trailing substring of _string_ starting at index _tailPos_. If _pos_ is 0, the first element of the concatenation will be the empty String.
+ 1. Let _newString_ be the string-concatenation of the first _pos_ code units of _string_, _replStr_, and the trailing substring of _string_ starting at index _tailPos_. If _pos_ is *+0*, the first element of the concatenation will be the empty String.
1. Return _newString_.
@@ -29869,7 +29869,7 @@ Runtime Semantics: GetSubstitution ( _matched_, _str_, _position_, _captures
$`
- If _position_ is 0, the replacement is the empty String. Otherwise the replacement is the substring of _str_ that starts at index 0 and whose last code unit is at index _position_ - 1.
+ If _position_ is *+0*, the replacement is the empty String. Otherwise the replacement is the substring of _str_ that starts at index 0 and whose last code unit is at index _position_ - 1.
The abstract operation RepeatMatcher takes eight parameters, a Matcher _m_, an integer _min_, an integer (or ∞) _max_, a Boolean _greedy_, a State _x_, a Continuation _c_, an integer _parenIndex_, and an integer _parenCount_, and performs the following steps:
The `"length"` property of the %TypedArray% constructor function is 0.
+The `"length"` property of the %TypedArray% constructor function is *+0*.