Skip to content

Commit

Permalink
Normative: remove Symbol.species from InitializeTypedArrayFromTypedArray
Browse files Browse the repository at this point in the history
Closes tc39#2677
  • Loading branch information
syg committed Mar 31, 2022
1 parent 07c7b5c commit 1d86466
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -39502,15 +39502,11 @@ <h1>
1. Let _srcByteOffset_ be _srcArray_.[[ByteOffset]].
1. Let _elementLength_ be _srcArray_.[[ArrayLength]].
1. Let _byteLength_ be _elementSize_ &times; _elementLength_.
1. If IsSharedArrayBuffer(_srcData_) is *false*, then
1. Let _bufferConstructor_ be ? SpeciesConstructor(_srcData_, %ArrayBuffer%).
1. Else,
1. Let _bufferConstructor_ be %ArrayBuffer%.
1. If _elementType_ is the same as _srcType_, then
1. Let _data_ be ? CloneArrayBuffer(_srcData_, _srcByteOffset_, _byteLength_, _bufferConstructor_).
1. Let _data_ be ? CloneArrayBuffer(_srcData_, _srcByteOffset_, _byteLength_, %ArrayBuffer%).
1. Else,
1. Let _data_ be ? AllocateArrayBuffer(_bufferConstructor_, _byteLength_).
1. If IsDetachedBuffer(_srcData_) is *true*, throw a *TypeError* exception.
1. Let _data_ be ? AllocateArrayBuffer(%ArrayBuffer%, _byteLength_).
1. Assert: IsDetachedBuffer(_srcData_) is *false*.
1. If _srcArray_.[[ContentType]] &ne; _O_.[[ContentType]], throw a *TypeError* exception.
1. Let _srcByteIndex_ be _srcByteOffset_.
1. Let _targetByteIndex_ be 0.
Expand Down

0 comments on commit 1d86466

Please sign in to comment.