@@ -806,6 +806,7 @@ <h1>%TypedArray%.prototype.slice ( _start_, _end_ )</h1>
806
806
1. Perform ? ValidateTypedArray(_O_ ).
807
807
1. <ins >Let _getBufferByteLength_ be MakeIdempotentArrayBufferByteLengthGetter(~SeqCst~ ).</ins >
808
808
1. Let _len_ be <del >_O_ .[[ArrayLength]]</del ><ins >IntegerIndexedObjectLength(_O_ , _getBufferByteLength_ )</ins >.
809
+ 1. <ins >Assert: _len_ is not ~out-of-bounds~ .</ins >
809
810
1. Let _relativeStart_ be ? ToIntegerOrInfinity(_start_ ).
810
811
1. If _relativeStart_ is -&infin ; , let _k_ be 0.
811
812
1. Else if _relativeStart_ < ; 0, let _k_ be max(_len_ + _relativeStart_ , 0).
@@ -842,7 +843,7 @@ <h1>%TypedArray%.prototype.slice ( _start_, _end_ )</h1>
842
843
1. Let _srcByteOffset_ be _O_ .[[ByteOffset]].
843
844
1. Let _targetByteIndex_ be _A_ .[[ByteOffset]].
844
845
1. Let _srcByteIndex_ be (_k_ × ; _elementSize_ ) + _srcByteOffset_ .
845
- 1. Let _limit_ be <ins >min(</ins >_targetByteIndex_ + _count_ & times ; _elementSize_ <ins >, _len_ × ; _elementSize_ )</ ins > .
846
+ 1. Let _limit_ be _targetByteIndex_ + <ins >min(</ins >_count_ <ins >, _len_ )</ ins > × ; _elementSize_ .
846
847
1. Repeat, while _targetByteIndex_ < ; _limit_ ,
847
848
1. Let _value_ be GetValueFromBuffer(_srcBuffer_ , _srcByteIndex_ , ~Uint8~ , *true* , ~Unordered~ ).
848
849
1. Perform SetValueInBuffer(_targetBuffer_ , _targetByteIndex_ , ~Uint8~ , _value_ , *true* , ~Unordered~ ).
0 commit comments