Skip to content

Commit 5cfe42a

Browse files
committed
fixup! Editorial: Further simplify SetTypedArrayFromTypedArray
1 parent 8c4eda9 commit 5cfe42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42280,8 +42280,6 @@ <h1>
4228042280
1. Perform ? ValidateTypedArrayCompatibility(_target_, _source_).
4228142281
1. Let _targetElementSize_ be TypedArrayElementSize(_target_).
4228242282
1. Let _srcElementSize_ be TypedArrayElementSize(_source_).
42283-
1. Let _targetByteIndex_ be _target_.[[ByteOffset]] + (_targetElementSize_ × _targetOffset_).
42284-
1. Let _limit_ be _targetByteIndex_ + (_targetElementSize_ × _srcLength_).
4228542283
1. Let _targetType_ be TypedArrayElementType(_target_).
4228642284
1. Let _srcType_ be TypedArrayElementType(_source_).
4228742285
1. NOTE: When _srcType_ matches _targetType_, bit-level encoding of the source data must be preserved. Operating on byte-sized units ensures that guarantee, but an implementation that can satisfy it with larger chunks may do so.
@@ -42298,6 +42296,8 @@ <h1>
4229842296
1. Let _srcByteLength_ be TypedArrayByteLength(_srcRecord_).
4229942297
1. Set _srcBuffer_ to ? CloneArrayBuffer(_srcBuffer_, _srcByteIndex_, _srcByteLength_).
4230042298
1. Set _srcByteIndex_ to 0.
42299+
1. Let _targetByteIndex_ be _target_.[[ByteOffset]] + (_targetElementSize_ × _targetOffset_).
42300+
1. Let _limit_ be _targetByteIndex_ + (_targetElementSize_ × _srcLength_).
4230142301
1. Repeat, while _targetByteIndex_ &lt; _limit_,
4230242302
1. Let _value_ be GetValueFromBuffer(_srcBuffer_, _srcByteIndex_, _srcType_, *true*, ~unordered~).
4230342303
1. Perform SetValueInBuffer(_targetBuffer_, _targetByteIndex_, _targetType_, _value_, *true*, ~unordered~).

0 commit comments

Comments
 (0)