Skip to content

Commit

Permalink
Tweak punctuation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck authored and caiolima committed Sep 17, 2019
1 parent af7ada9 commit 55a7f21
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -4543,7 +4543,7 @@ <h1>ToNumber ( _argument_ )</h1>
BigInt
</td>
<td>
Throw a *TypeError* exception
Throw a *TypeError* exception.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5500,7 +5500,7 @@ <h1>Abstract Relational Comparison</h1>
1. If _nx_ or _ny_ is *NaN*, return *undefined*.
1. If _nx_ is *-&infin;* or _ny_ is *+&infin;*, return *true*.
1. If _nx_ is *+&infin;* or _ny_ is *-&infin;*, return *false*.
1. If the mathematical value of _nx_ is less than the mathematical value of _ny_, return *true*, otherwise return *false*.
1. If the mathematical value of _nx_ is less than the mathematical value of _ny_, return *true*; otherwise return *false*.
</emu-alg>
<emu-note>
<p>Step 3 differs from step 7 in the algorithm for the addition operator `+` (<emu-xref href="#sec-addition-operator-plus"></emu-xref>) by using the logical-and operation instead of the logical-or operation.</p>
Expand Down Expand Up @@ -5531,7 +5531,7 @@ <h1>Abstract Equality Comparison</h1>
1. If Type(_x_) is Object and Type(_y_) is either String, Number, BigInt, or Symbol, return the result of the comparison ToPrimitive(_x_) == _y_.
1. If Type(_x_) is BigInt and Type(_y_) is Number, or if Type(_x_) is Number and Type(_y_) is BigInt, then
1. If _x_ or _y_ are any of *NaN*, *+&infin;*, or *-&infin;*, return *false*.
1. If the mathematical value of _x_ is equal to the mathematical value of _y_, return *true*, otherwise return *false*.
1. If the mathematical value of _x_ is equal to the mathematical value of _y_, return *true*; otherwise return *false*.
1. Return *false*.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -9362,7 +9362,7 @@ <h1>MakeArgSetter ( _name_, _env_ )</h1>
<emu-clause id="sec-integer-indexed-exotic-objects">
<h1>Integer-Indexed Exotic Objects</h1>
<p>An <dfn id="integer-indexed-exotic-object">Integer-Indexed exotic object</dfn> is an exotic object that performs special handling of integer index property keys.</p>
<p><emu-xref href="#integer-indexed-exotic-object">Integer-Indexed exotic objects</emu-xref> have the same internal slots as ordinary objects and additionally [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]] and [[TypedArrayName]] internal slots.</p>
<p><emu-xref href="#integer-indexed-exotic-object">Integer-Indexed exotic objects</emu-xref> have the same internal slots as ordinary objects and additionally [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]] internal slots.</p>
<p><emu-xref href="#integer-indexed-exotic-object">Integer-Indexed exotic objects</emu-xref> provide alternative definitions for the following internal methods. All of the other Integer-Indexed exotic object essential internal methods that are not defined below are as specified in <emu-xref href="#sec-ordinary-object-internal-methods-and-internal-slots"></emu-xref>.</p>

<emu-clause id="sec-integer-indexed-exotic-objects-getownproperty-p">
Expand Down Expand Up @@ -9458,7 +9458,7 @@ <h1>[[OwnPropertyKeys]] ( )</h1>
<p>When the [[OwnPropertyKeys]] internal method of an Integer-Indexed exotic object _O_ is called, the following steps are taken:</p>
<emu-alg>
1. Let _keys_ be a new empty List.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]] and [[TypedArrayName]] internal slots.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]] internal slots.
1. Let _len_ be _O_.[[ArrayLength]].
1. For each integer _i_ starting with 0 such that _i_ &lt; _len_, in ascending order, do
1. Add ! ToString(_i_) as the last element of _keys_.
Expand All @@ -9474,7 +9474,7 @@ <h1>[[OwnPropertyKeys]] ( )</h1>
<h1>IntegerIndexedObjectCreate ( _prototype_, _internalSlotsList_ )</h1>
<p>The abstract operation IntegerIndexedObjectCreate with arguments _prototype_ and _internalSlotsList_ is used to specify the creation of new <emu-xref href="#integer-indexed-exotic-object">Integer-Indexed exotic objects</emu-xref>. The argument _internalSlotsList_ is a List of the names of additional internal slots that must be defined as part of the object. IntegerIndexedObjectCreate performs the following steps:</p>
<emu-alg>
1. Assert: _internalSlotsList_ contains the names [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]] and [[TypedArrayName]].
1. Assert: _internalSlotsList_ contains the names [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]].
1. Let _A_ be a newly created Integer-Indexed exotic object with an internal slot for each name in _internalSlotsList_.
1. Set _A_'s essential internal methods to the default ordinary object definitions specified in <emu-xref href="#sec-ordinary-object-internal-methods-and-internal-slots"></emu-xref>.
1. Set _A_.[[GetOwnProperty]] as specified in <emu-xref href="#sec-integer-indexed-exotic-objects-getownproperty-p"></emu-xref>.
Expand All @@ -9494,7 +9494,7 @@ <h1>IntegerIndexedElementGet ( _O_, _index_ )</h1>
<p>The abstract operation IntegerIndexedElementGet with arguments _O_ and _index_ performs the following steps:</p>
<emu-alg>
1. Assert: Type(_index_) is Number.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]] and [[TypedArrayName]] internal slots.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]] internal slots.
1. Let _buffer_ be _O_.[[ViewedArrayBuffer]].
1. If IsDetachedBuffer(_buffer_) is *true*, throw a *TypeError* exception.
1. If IsInteger(_index_) is *false*, return *undefined*.
Expand All @@ -9515,7 +9515,7 @@ <h1>IntegerIndexedElementSet ( _O_, _index_, _value_ )</h1>
<p>The abstract operation IntegerIndexedElementSet with arguments _O_, _index_, and _value_ performs the following steps:</p>
<emu-alg>
1. Assert: Type(_index_) is Number.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]] and [[TypedArrayName]] internal slots.
1. Assert: _O_ is an Object that has [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]] internal slots.
1. If _O_.[[ContentType]] is `"BigInt"`, let _numValue_ be ? ToBigInt(_value_).
1. Otherwise, let _numValue_ be ? ToNumber(_value_).
1. Let _buffer_ be _O_.[[ViewedArrayBuffer]].
Expand Down Expand Up @@ -34917,7 +34917,7 @@ <h1>%TypedArray%.prototype.set ( _typedArray_ [ , _offset_ ] )</h1>
1. Let _srcLength_ be _typedArray_.[[ArrayLength]].
1. Let _srcByteOffset_ be _typedArray_.[[ByteOffset]].
1. If _srcLength_ + _targetOffset_ &gt; _targetLength_, throw a *RangeError* exception.
1. If _target_.[[ContentType]] is not equal to _typedArray_.[[ContentType]], throw a *TypeError* exception.
1. If _target_.[[ContentType]] is not equal to _typedArray_.[[ContentType]], throw a *TypeError* exception.
1. If both IsSharedArrayBuffer(_srcBuffer_) and IsSharedArrayBuffer(_targetBuffer_) are *true*, then
1. If _srcBuffer_.[[ArrayBufferData]] and _targetBuffer_.[[ArrayBufferData]] are the same Shared Data Block values, let _same_ be *true*; else let _same_ be *false*.
1. Else, let _same_ be SameValue(_srcBuffer_, _targetBuffer_).
Expand Down Expand Up @@ -35143,7 +35143,7 @@ <h1>Runtime Semantics: AllocateTypedArray ( _constructorName_, _newTarget_, _def
1. Let _obj_ be IntegerIndexedObjectCreate(_proto_, &laquo; [[ViewedArrayBuffer]], [[TypedArrayName]], [[ContentType]], [[ByteLength]], [[ByteOffset]], [[ArrayLength]] &raquo;).
1. Assert: _obj_.[[ViewedArrayBuffer]] is *undefined*.
1. Set _obj_.[[TypedArrayName]] to _constructorName_.
1. If _constructorName_ is `"BigInt64Array"` or `"BigUint64Array`", set _obj_.[[ContentType]] to `"BigInt"`.
1. If _constructorName_ is `"BigInt64Array"` or `"BigUint64Array"`, set _obj_.[[ContentType]] to `"BigInt"`.
1. Otherwise, set _obj_.[[ContentType]] to `"Number"`.
1. If _length_ is not present, then
1. Set _obj_.[[ByteLength]] to 0.
Expand Down Expand Up @@ -36391,7 +36391,7 @@ <h1>IsDetachedBuffer ( _arrayBuffer_ )</h1>
<h1>IsNoTearConfigration ( _type_, _order_ )</h1>
<p>The abstract operation IsNoTearConfigration with arguments _type_ and _order_ performs the following steps:</p>
<emu-alg>
1. If IsUnclampedIntegerTypedArrayType(_type) is *true*, return *true*.
1. If IsUnclampedIntegerTypedArrayType(_type_) is *true*, return *true*.
1. If IsBigIntTypedArrayType(_type_) is *true* and _order_ is not `"Init"` or `"Unordered"`, return *true*.
1. Return *false*.
</emu-alg>
Expand Down Expand Up @@ -36443,7 +36443,7 @@ <h1>RawBytesToNumeric ( _type_, _rawBytes_, _isLittleEndian_ )</h1>
1. Let _value_ be the byte elements of _rawBytes_ concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value.
1. If _value_ is an IEEE 754-2008 binary64 NaN value, return the *NaN* Number value.
1. Return the Number value that corresponds to _value_.
1. If IsUnsignedTypedArrayType(_type) is *true*, then
1. If IsUnsignedTypedArrayType(_type_) is *true*, then
1. Let _intValue_ be the byte elements of _rawBytes_ concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number.
1. Else,
1. Let _intValue_ be the byte elements of _rawBytes_ concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length _elementSize_ &times; 8.
Expand Down

0 comments on commit 55a7f21

Please sign in to comment.