Skip to content

Commit

Permalink
Normative: Remove detached array buffer check prior to calling CloneA…
Browse files Browse the repository at this point in the history
…rrayBuffer

This aligns the detached array buffer checks in step 18 and 19 of 22.2.4.3.

Fixes #1002
  • Loading branch information
anba committed Sep 22, 2017
1 parent de77aae commit 14fc9d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -33413,7 +33413,6 @@ <h1>_TypedArray_ ( _typedArray_ )</h1>
1. Else,
1. Let _bufferConstructor_ be %ArrayBuffer%.
1. If SameValue(_elementType_, _srcType_) is *true*, then
1. If IsDetachedBuffer(_srcData_) is *true*, throw a *TypeError* exception.
1. Let _data_ be ? CloneArrayBuffer(_srcData_, _srcByteOffset_, _byteLength_, _bufferConstructor_).
1. Else,
1. Let _data_ be ? AllocateArrayBuffer(_bufferConstructor_, _byteLength_).
Expand Down

0 comments on commit 14fc9d4

Please sign in to comment.